hello happy valentines
my goal is allow members to create questions for other members to answear.
<form action="the_questions.php" method="GET ">
<?php
//check if alpha numeric
$rows = $_GET['rows'];
for($i = 0; $i < $rows; $i = $i + 1)
{
?>
<div>
<table>
<tr><td>:write the question</td><td>:type of question </td></tr>
<tr><td><input name="question" type="text" size="100"></td><td><select name="question_type">
<option>structure</option>
<option>boolen</option>
<option>list</option>
</select></td></tr>
</table>
</div>
<?
}
?>
<input name="" value="view the questions" type="submit">
</form>
the_questions.php function is for review by the creater
//i am testing to see if values are sent
<body><?php
$questions = $_POST['quetion'];
echo $questions['0'];
print_r($questions);
?>
</body>
[code=php]
NOTE
I do not have session_started on these two pages.
I know I have to work much more to finish the project.
I am working in steps.
at this point I like to see a value on the_questions.php. For instance, if I entered "hello hello" for the first text box want to see "hello hello" when I echo $question['0']; .However, I am not getting that output
Thanks Tom