Page 1 of 1

PHP Drop down List problem. Please Help

Posted: Wed Nov 02, 2011 11:19 am
by jakeray
I have been searching for an answer to this for the last two days.
I am trying to add a list of manufacturers to an existing form in php.
This worked out ok and I got it to work somewhat.

Here is the problem when the user makes the selection and submits the form
it takes them to another page that shows them a preview of their post.
In this preview it show them the manufacturer they selected. But when they finalize the the
post it doesn't show using the same code.

I know that their must be a simple way of doing this. I am not great with php but I have put forth a valiant effort to get this done. I am stumped please help.

Here is my code.

HTML:

Code: Select all

<select action="select.php" name="manufacturer">
		<option value="Lincoln">Lincoln</option>
		<option value="Example">Example</option>
		</select>
PHP:

Code: Select all

<?php
    if(isset($_POST['manufactuer']))
    echo "Manufacturer: ".$_POST['manufacturer'];
      else {?>
I call to the selection with this.

Code: Select all

<?php echo "Manufacturer: ".$_POST['manufacturer']; ?>
How do I show this when the user posts and if the same user posts again or a different user posts to show their selections for those specific posts.
posts

Re: PHP Drop down List problem. Please Help

Posted: Wed Nov 02, 2011 11:54 am
by Celauran
jakeray wrote:But when they finalize the the post it doesn't show using the same code.
What does 'finalize the post' mean? You haven't given us much in the way of relevant code.

Re: PHP Drop down List problem. Please Help

Posted: Wed Nov 02, 2011 12:07 pm
by jakeray
Thanks for the reply. Maybe I didn't word my question right.
I need to somehow store the users selection without accessing the database and then display the selection on their post for others users to see.
When a user selects a manufacturer and then submits I need that information to be displayed on the page that I point it too for other users to see.
The same with other users and their selections.

I'm trying to explain this in a way that is easy to understand to no avail.