Re: PhP & Javascript Mixed Repost Fields
| From: | George Nicolae | Date: | Mon, 01 Apr 2002 17:56:09 +0000 |
| Subject: | Re: PhP & Javascript Mixed Repost Fields | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90983@lists.php.net to get a copy of this message | ||
in fooa.php for each textfield
<?
if (!empty($field1)) $value=$value;
else $value="";
?>
<input type="text" name="textfield" value="<?echo
$value;?>">
so, when you come back from foob.php if a $field !empty the respective
textfiel will have a value in html form;
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Simos Varelakis" <Simos@athenatours.gr> wrote in message
news:000401c1d9a2$afd6bde0$9b00a8c0@simos...
Here is a problem :-)
A php post form fooa.php
Submit all form fields to a page foob.php
Page foob.php do some mysql db check and in one condition I want to
Return to fooa.php without losing any field value... I made this from
foob.php with
header:("location:fooa.php?field1=$field1&field2=$field2.....etc")
But this is more complex esspecially when in fooa.php there are radio
buttons + checkboxes.
I thing that if I could with Javascript in foob.php create an (invisble)
form and take all posted fields from
Fooa.php And resubmit it with form.submit method to fooa.php I will
have best results But I dont know how to do this since I am a
begginer.. Anyone can help please send me an email
Thanks in advnace for your time & help and excuse me if is off topic
Best Regads
simos