hi
i am a total newbie to php.
i want to achieve the following:
user clicks on a link with url "http://domain.com/login.php?person=foo&pw=hello"
the login.php script creates a Redirect header dynamically to a CGI script like "http://domain2.com/login.cgi?person=foo&pw=hello" - basically passing the query string as it is to the CGI script.
idea is to slowly get comfortable with PHP and then migrate.
i will be grateful if someone can share the code to achieve this.
regards
Vikram
header("Location: http://domain2.com/login.cgi?person=".$_GET['person']."&pw=".$_GET['pw'])
Query string parameters are made in available in PHP in the $_GET superglobal array.
Thanks!
that's just what i needed
vikram