Input form and assign new URL to variable

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 14
Joined: Tue Oct 04, 2011 6:50 am
Location: West Virginia

Sun Sep 29, 2013 7:34 pm

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: Select all


New php-forum User
New php-forum User
Posts: 44
Joined: Tue May 28, 2013 10:04 pm
Location: India,Lucknow

Sun Sep 29, 2013 9:38 pm

This is simple here is the code
<? if ($_POST ['b_submit']) {
echo "<script language='javascript'>window.location='".$_POST ['inp']."'</script>";
} ?>
<form name="asdf" method="post">
<input type="text" name="inp"><input type="submit" name="b_submit" value="Submit">


Post Reply