Input form and assign new URL to variable

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
This should give you the full URL of the page you're at, I don't know if this is what you need though..
Code:
echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
 
This is simple here is the code
<? if ($_POST ['b_submit']) {
echo "<script language='javascript'>window.location='http://www.yellowpages.vn/vn/q5551/".$_POST ['inp']."'</script>";
} ?>
<form name="asdf" method="post">
<input type="text" name="inp"><input type="submit" name="b_submit" value="Submit">
</form>

developerahusain
 
Back
Top