Hi,
There is a dating script in the registration form select box 'purpose' have only 1 choice, I want to modify this select box a little bit, I want to make multiple choice. How it is possible?
The original (there are other fields too):
<?php
……
mysql_query("INSERT INTO ".C_MYSQL_MEMBERS." VALUES ('', ".$usr." '".$fname."','".$lname."','".$pass."', ETC
'".$purpose."',' ETC …
<form action=$_SERVER['PHP_SELF']; method="post">
<select name="purpose" class="input"><option selected value=0> ---------
<? $p=1;while(isset($wp[$p])) {echo '<option value="'.$p.'">'.$wp[$p];$p++;}
?>
</select>
There is $wp in other file saved as array
$wp=array(
'for unknown',
'for romantic',
'for long relationship',
'for friendship',
'for sex services'
);
I have changed it:
<?php
mysql_query("INSERT INTO ".C_MYSQL_MEMBERS." VALUES ('', ".$usr." '".$fname."','".$lname."','".$pass."', ETC…
'".$purpose."',' ETC
<form action=$_SERVER['PHP_SELF']; method="post">
<select multiple name="purpose" class="input" size=4>
<option selected value=0> --------- </option>
<option value=1>for romantic </option>
<option value=2>for long relationship</option>
<option value=3>for frindship </option>
<option value=4>for sex services</option>
</select>
but it works still as 1 choice. please see: http://meet.siteburg.com/test.php
selectbox 'the type of relation'
When added [] to <select multiple name="purpose[]" - not writes any choice.
Please help,
Angela