strings in php form wont work.. urgent help..
Posted: Thu Sep 18, 2008 2:47 pm
hello all,
i`m trying to make users input the url into a text field.. and then.. when users hit the button,
it will bring the users to another page..
i`m having problems with the strings ..
can anyone help?
urgent..
i`m trying to make users input the url into a text field.. and then.. when users hit the button,
it will bring the users to another page..
i`m having problems with the strings ..
can anyone help?
urgent..
Code: Select all
<?
//print "$i. <a href='".$row['url']."'>".$row['url']."</a><br>\n";
$url = addslashes( $_POST['urlField'] );
print "
<form name='form1' method='post' action='http://localhost/fyp/populate.php?url=http://".$url."'>
<label>
<input type='text' name='urlField' id='urlField' value='http://'>
<input type='submit' name='submitBtn' id='submitBtn' value='Submit'>
</label>
</form>
";
?>