Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > multiple select but ......php/mysql/html

Reply
Thread Tools

multiple select but ......php/mysql/html

 
 
The Legend
Guest
Posts: n/a
 
      08-07-2005
hello,

Maybe someone can help me out with this one where i am stuck where i solve
this in html or other code?


html/php and mysql using in a html form:

<tr>
<td><?php echo"<font face=$b_fontface
size=$b_fontsize>";?>WoonPlaats :</td>
</tr>
<tr>
<td><select name="plaats" size="1">
<?
$result = mysql_query("select * from regio_nl order by rplaats");
while ( $row = mysql_fetch_array($result))
{
$my_column = $row["rplaats"];
/*echo "<option
value=\"".$row[rplaats]."\">".$row['rplaats']."</option>";*/

echo("<option value='$my_column'>$my_column</option>");
}
?>

</select> <br> </td>
</tr>

i want the users to select the rplaats, display the selection but also put a
connected variable (not displayed) from the query connected to rplaats into
a variable parsing trough another page insert these variables into a table
like this:

$query = "INSERT INTO mb_advertentie (plaats, variable2) VALUES( '$plaats',
'$variable2')";

As i did not know where to post this, i did a Xposting if you dont mind.



thanks in advance

Ed



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set multiple selected options in a select-multiple type selectin scripting? Max Javascript 5 04-14-2008 01:02 AM
Force Download fails when I select "Open" but works fine when I select "Save" Michael ASP General 0 01-25-2005 08:58 PM
<select tag> - how do I set the current index in a multiple select box? Ferd Berfel Javascript 4 04-06-2004 06:53 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM



Advertisments