954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP Drop down List , Saving Data and Fetching Data

This is basically what i need. I need users to select a manufacturer to post on a classified ad.
When the users make the selection I need that information processed and sent to the page I point
it to permanently for other users to see. The same for any user that makes a post

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:

LincolnExample

PHP:

<?php
if(isset($_POST['manufactuer']))
echo "Manufacturer: ".$_POST['manufacturer'];
else {?>

I call to the selection with this.

<?php echo "Manufacturer: ".$_POST['manufacturer']; ?>

This code only displays for the current session.
I need to do this permanently.

jakeray
Newbie Poster
4 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Not sure what you want exactly but I think you need to save the results of the $_POST to the database if you want it accessible permanently.

Try http://uk.php.net/mysqli for more information

kevindougans
Junior Poster
129 posts since Oct 2007
Reputation Points: 13
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: