thanks, i fixed it.
the problem is here
<select name="title">
<option>Mr</option>
<option>Mrs</option>
<option>Miss</option>
<option>Dr</option>
</select>
i didnt give each value a name. The following is correct:
<select name="title">
<option value="Mr">Mr
<option value="Mrs">Mrs
<option...
also a problem occurs because the drop down list is as follows:
<select name="title">
<option>Mr</option>
<option>Mrs</option>
<option>Miss</option>
<option>Dr</option>
</select>
which is different to :
<form method="post" action="somescript.php">
<input type="text" name="foo"><br>...
ok thanks.
So for example i have the following snippet of code:
mysql_query("INSERT INTO entry (date, title, forename) VALUES ('$date','$title','$forename')")
or die("error");
If, for example, the field named title is of the drop-down list type in the HTML form, how would i attach the value...
im sorry i don't understand that? sorry im a bit of a newbie.
are you saying that the data will be in the $_POST variable? If so, how do io retrieve that information??
hello
i have a HTML form (which the user completes) that submits the information in it to a PHP script which then compiles the information and enters it into a database. It does this by using the POST method. The problem is not all the data is being passed to the Database. I have noticed that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.