URL in PHP
Not sure how to really ask this question. I know what I want - but not how to explain it.
I want to be able to send a user back to the page they came from using an if/else statement. For example:
if( $_POST['word'] )
{
Do this!
}
else
{
???????????
}
The ?????? should be a url back to the first page (page where user came from). I know the url I want to use - just not how to code it to send them back there.
Please help.
