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>Code: Select all
<?php
if(isset($_POST['manufactuer']))
echo "Manufacturer: ".$_POST['manufacturer'];
else {?>Code: Select all
<?php echo "Manufacturer: ".$_POST['manufacturer']; ?>posts