It is used to capture the URL of the form the visitor has completed.
What would I need to change to make this work in PHP5?
Code: Select all
<INPUT NAME=referer TYPE=hidden VALUE="<?=$_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];?>">
Moderator: General Moderators
Code: Select all
<INPUT NAME=referer TYPE=hidden VALUE="<?=$_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];?>">
Code: Select all
<?=Code: Select all
<?php echoCode: Select all
<input name="referer" type="hidden" value="<?php echo $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];?>">Code: Select all
<input name="referer" type="hidden" value="<?php echo $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];?>">Code: Select all
var_dump($_SERVER);Code: Select all
<form name="mform" action="http://mydomain.com/form/autoform.php" method="post" onsubmit="return validate()">
<input name="referer" type="hidden" value="<?php echo $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];?>">
<input name="redirect" type="hidden" value="http://mydomain.com/thanks.php">