url string
| From: | Kris Vose | Date: | Mon, 10 Jun 2002 20:41:05 +0000 |
| Subject: | url string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101449@lists.php.net to get a copy of this message | ||
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