|
Posted by David Haynes on 05/29/06 18:55
Ian Davies wrote:
> Hello
>
> does anyone know how I can retain values of a radio button and text in a
> text box on a page when I use $_SERVER['PHP_SELF'] to requery a page? Im
> sure Ive seen this done before but cant find the code
>
> Thanks
> Ian
>
>
The radio button and text are contained within a <form></form> tag set.
The <form> tag will have either method="GET" or method="POST"
If method="GET", you can read back the values using:
$foo = $_GET['foo'] where 'foo' is the name of your radio selector or
text field.
If method="POST", you can read back the values using:
$foo = $_POST['foo'];
-david-
Navigation:
[Reply to this message]
|