Llally
Wed 21 February 2007, 06:47 am GMT +0100
Okay, I really need quite a bit of help -- this is my first ever attempt at a form (much less a php form!)....
I read some other help topics. I found examples of code. I am really trying to figure out what the particular values mean. This is what I have so far:
<?php
echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '">
<table border="0">
<tr>
<td>User name:</td>
<td><input type="text" name="User name"></td>
</tr>
</table>
<hr>
<b>Amount of sleep:</b><br>
<table border="0" cellspacing="10px">
<td><input type="radio" name="> 10 hours" value="Print_W"> >10 hours</td>
<td><input type="radio" name="8 to 10 hours" value="Web_WO"> 8 to 10 hours</td>
<td><input type="radio" name="6 to 8 hours" value="Print_W"> 6 to 8 hours</td>
<td><input type="radio" name="4 to 6 hours" value="Web_WO"> 4 to 6 hours</td>
<td><input type="radio" name="2 to 4 hours" value="Print_W"> 2 to 4 hours</td>
<td><input type="radio" name="Less than hours" value="Web_WO"> Less than 2 hours</td>
</tr>
</table>
For example, echo '<form method="get" action="' . $_SERVER['PHP_SELF'] is part of the code example I was using. Could someone please tell me what that exactly means so I can make sure I am using the correct values?
Also, in the radio buttons coding, first you enter a name, then value, and then from what I can understand, the last field is how it will display? What exactly does the value mean? (again, that's from example code) Should the name and the display text be the same?
I'm sorry I'm so clueless. Don't be afraid to talk to me as if I were the village idiot. I just really want to learn! Any help would be GREATLY appreciated.
Thanks a ton!
I read some other help topics. I found examples of code. I am really trying to figure out what the particular values mean. This is what I have so far:
<?php
echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '">
<table border="0">
<tr>
<td>User name:</td>
<td><input type="text" name="User name"></td>
</tr>
</table>
<hr>
<b>Amount of sleep:</b><br>
<table border="0" cellspacing="10px">
<td><input type="radio" name="> 10 hours" value="Print_W"> >10 hours</td>
<td><input type="radio" name="8 to 10 hours" value="Web_WO"> 8 to 10 hours</td>
<td><input type="radio" name="6 to 8 hours" value="Print_W"> 6 to 8 hours</td>
<td><input type="radio" name="4 to 6 hours" value="Web_WO"> 4 to 6 hours</td>
<td><input type="radio" name="2 to 4 hours" value="Print_W"> 2 to 4 hours</td>
<td><input type="radio" name="Less than hours" value="Web_WO"> Less than 2 hours</td>
</tr>
</table>
For example, echo '<form method="get" action="' . $_SERVER['PHP_SELF'] is part of the code example I was using. Could someone please tell me what that exactly means so I can make sure I am using the correct values?
Also, in the radio buttons coding, first you enter a name, then value, and then from what I can understand, the last field is how it will display? What exactly does the value mean? (again, that's from example code) Should the name and the display text be the same?
I'm sorry I'm so clueless. Don't be afraid to talk to me as if I were the village idiot. I just really want to learn! Any help would be GREATLY appreciated.
Thanks a ton!