I don't really understand your question, Dorky.
And I get this error when I try to run it:
Code:
Parse error: syntax error, unexpected T_STRING in /home/pk158149/public_html/psnid.php on line 9
Here is my .php page:
Code:
<?php
if (isset($_POST['psnid']) && !empty($_POST['psnid']))
{
$id = strip_tags($_POST['psnid']);
header("Location: http://profiles.us.playstation.com/playstation/psn/visit/profiles/$id); exit;
}
else
{
header("Location: http://profiles.us.playstation.com); exit;
}
?>
Here is my form:
Code:
<form method='post' action='psnid.php'>
<label>Enter Your PSN ID</label>
<input name='psnid' type='text' />
<button type='submit'>Go</button>
</form>