[php]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:sc hemas-microsoft-com:vml" xmlns:o="urn:sc hemas-microsoft-com:office:offi ce">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title></title>
</head>
<body>
<p><code><fon t color="#000000" ><font color="#0000bb" ><?php<br />
<BR></font><font color="#007700" >if (isset (</font><font color="#0000bb" >$_POST</font><font color="#007700" >[</font><font color="#dd0000" >'number'</font><font color="#007700" >])) { <br />
<BR>   ;</font><font color="#0000bb" >header</font><font color="#007700" >(</font><font color="#dd0000" >'Location:&nbs p;http://www.towncenter. com/'</font><font color="#007700" >.</font><font color="#0000bb" >stripslashes </font><font color="#007700" >(</font><font color="#0000bb" >$_POST</font><font color="#007700" >[</font><font color="#dd0000" >'number'</font><font color="#007700" >]));<br />
<BR>   ;exit;<br />
<BR>}<br />
<BR>else { <br />
<BR>   ;echo </font><font color="#dd0000" >'<form  ;method="p ost" action="'</font><font color="#007700" >.</font><font color="#0000bb" >$_SERVER</font><font color="#007700" >[</font><font color="#dd0000" >'PHP_SELF'</font><font color="#007700" >].</font><font color="#dd0000" >'" & gt;'</font><font color="#007700" >;<br />
<BR>   ;echo </font><font color="#dd0000" >'Enter va lue <in put type=& quot;text" size=&quo t;3" name="numb er" />'</font><font color="#007700" >;<br />
<BR>   ;echo </font><font color="#dd0000" >' <inp ut type=&q uot;submit" ; value=&q uot;Submit  ;value"&nb sp;/>'</font><font color="#007700" >;<br />
<BR>   ;echo </font><font color="#dd0000" >'</form>'</font><font color="#007700" >;<br />
<BR>}<br />
<BR></font><font color="#0000bb" >?></font><br />
</font></code></p>
<?php
if (isset($_POST['number'])) {
header('Locatio n: http://www.towncenter. com/'.stripslashes( $_POST['number']));
exit;
}
else {
echo '<form method="post" action="'.$_SER VER['PHP_SELF'].'" >';
echo 'Enter value <input type="text" size="3" name="number" />';
echo ' <input type="submit" value="Submit value" />';
echo '</form>';
}
?>
</body>
</html>[/php]
You have translated the code I sent you using htmlentities so it won't work. This is a line of code I sent you[php] echo 'Enter value <input type="text" size="3" name="number" />';[/php]
This is what is shown in the browser[php]Enter valu e <inpu t type=&qu ot;text"&n bsp;size=" 3" na me="number " />[/php]
You have translated that code into an html tag free string. How did you put that code snippet in your own script? Show the code where you put it.
Ronald :cool: