FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
Combo Box and PHP
Message  

Reply with quote
Post Combo Box and PHP 
Hi again, Really enjoy using this site for help as I get quick replies Thanks alot. Razz

how would I parse a selection from a combo box to php ?

If a users had to select 1 of the options in a combobox how can i take the selection as variable so that PHP can use it.

Like:



Code:


$name= pg_query("select * from tblproduct");

print "<select name=\"productname\" id=\"product\">";
while($res= pg_fetch_array($name)){
print "<option>";

print $res['productname'];
print "</option>";
}
print "</select>";



As you can see i'm loading a combox from the database.

View user's profile Send private message

Reply with quote
Post  
there was a similar post which has already been answered:
http://www.thephpforum.net/viewtopic.php?t=2494


_________________
www.codeigniter.com
View user's profile Send private message ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com