|
Posted by Ian Davies on 05/30/06 01:47
thanks
I found a solution. posted below incase anyone else is interested
at top of page
session_start();
$_SESSION['mytextbox'] = trim($_POST['mytextbox']);
$_SESSION['myradiobutton'] = trim($_POST['myradiobutton']);
for the textbox
input name="mytextbox" type="text" value="<?php echo
$_SESSION['mytextbox'];?>"
for the radiobutton
input <?php if (!(strcmp($_SESSION['myradiobutton'],"1"))) {echo "CHECKED";}
?> name="myradiobutton" type="radio" value="yourcheckedvaluehere"
ian
"dimo414" <dimo414@gmail.com> wrote in message
news:1148936810.408821.112400@j33g2000cwa.googlegroups.com...
> inside the tag for the textarea, the value attribute should be set to a
> snippet of php which echo's (or prints) the value of the posted
> variables. If nothing has been submitted, then nothing will be echoed,
> and the box will appear empty. if something was submitted, it will be
> echoed back into the box. A similar idea applies to radio and
> checkboxes, but it's SLIGHTLY more dificult because you have to
> determine (using if conditionals) which button it should be set to.
>
[Back to original message]
|