Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-24-2006, 12:49 PM   PM User | #1
puja
New Coder

 
Join Date: Apr 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
puja is an unknown quantity at this point
adding problem

hey
im trying to add selection from a php form into a mysql database but it i am not sure how to.
ive got drop down lists to make the selection from and ive given them values and i know i need to use the POST method but i just cant seem to get it to work.

my options look like this:

Type:
<select name="select">
<option value='Villa'>Villa</option>
<option value='Caravan'>Caravan</option>
<option value='Lodge'>Lodge</option>
</select>
&nbsp;
Board:
<select name="select">
<option value='Full Board'>Full Board</option>
<option value='Half Board'>Half Board</option>
<option value='B & B'>B & B</option>
<option value='Self-Catering'>Self-Catering</option>
</select> &nbsp;

hope someone can help
puja is offline   Reply With Quote
Old 04-24-2006, 01:42 PM   PM User | #2
Rich Pedley
Regular Coder

 
Join Date: Sep 2005
Location: Liverpool
Posts: 226
Thanks: 0
Thanked 0 Times in 0 Posts
Rich Pedley is an unknown quantity at this point
you are using name='select' twice they need to be different, for example:
Code:
<select name="accomodation">
<option value='Villa'>Villa</option>
...
</select>

<select name="options">
<option value='Full Board'>Full Board</option>
...
</select>
__________________
my mind is on a permanent tangent
Rich Pedley is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:21 PM.


Advertisement
Log in to turn off these ads.