Posted by kirke on 10/19/06 07:57
I want to load textarea's value in drop-down box.
In first page, such form is existed.
<form name="form1" method="post" action="next.php">
<textarea name="dayList" Id = "dayList" cols=20
rows=10></textarea>
</form>
in text area there's one column of values.
in "next.php", put values of 'dayList' in select option. I made a code
by myself. However, as you see, it's just nonsense. How can I modify
this? Thank you!
<?php
$value=(int)$_POST['dayList'];
?>
<select name="dateList" id="dateList" >
<?php
echo '<option value="1">' .$value '</option>';
?>
</select>
[Back to original message]
|