Re: url string
| From: | Scott Hurring | Date: | Mon, 10 Jun 2002 20:54:41 +0000 |
| Subject: | Re: url string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101453@lists.php.net to get a copy of this message | ||
Did you verify that the variables actually contain data?
They're probably empty, which is why they dont seem to
be passing correctly.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Kris Vose" <KVose@alidaconnection.com> wrote in message
news:0D192E12994BF64B84EB7BE6D960E3900D6866@alidamail.alidaconnection.com...
I am looking for a way to pass two variables in a url string to a php script. I
originally was using java script to acomplish this because once the user is
redirected they can not press the back button to get back to the original page.
It looks like this:
?>
<script> window.location =
"somefile.php?user=<?username?>&pass=<?userpass?>"</script>
<?
I have also tried it this way:
echo "<script> window.location =
'somefile.php?user=$username&pass=$userpass'</script>";
Unfortunately both ways do not work. In the first instance the script jumps to
the window location but does not pass php variables into the url string. In the
second instances the java script does not even compile.
Is there a way to do this with php?...html?...javascript?
...I think that window.location does not except url string variables or
something. Anyway if anyone can help it would be appreciated. Thanks.
Kris