Re: Why this doesn't work ?
| From: | Rahul S. Johari | Date: | Tue, 24 May 2005 14:19:02 +0000 |
| Subject: | Re: Why this doesn't work ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215795@lists.php.net to get a copy of this message | ||
Ave,
I tried:
<form><input type="text" name="email"><INPUT
type="submit" value="SUbmit"
name="Submit"></form>
<?php
if($Submit) {
echo"
<script language=\"JavaScript\">
window.location=\"delete.php?email=$email\"
</script>";
}
?>
In a simple page. It worked absolutely fine... The value of $email was
passed along to delete.php
I don't think there's something wrong with your code below.. There might be
some other reason affecting the transfer of the $email variable value.
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul@informed-sources.com
http://www.informed-sources.com
On 5/24/05 8:24 AM, "Mário Gamito" <lists@tuxdoit.com> wrote:
> Hi,
>
> Hi have this bit of code:
>
> -----------------------------------------------------
> echo"
> <script language=\"JavaScript\">
> window.location=\"valid_cv_insert.php?email=$email\"
> </script>";
> -----------------------------------------------------
>
> but when passing to file valid_cv_insert.php, $email value doesn't go along.
> The page that has this code "knows" tha value of $email variable.
>
> How can i turn this around ?
>
> Thanking you in advance.
>
> Warm regards,
> Mário Gamito