Friday, March 4, 2011

how to create a go back in php ?


If you have an html page that includes php
(and your server is configured to parse .html as php, then:


html
headtitle...titlehead
body
?php echo "Hello World!"; ?
body
html

if you mean executing a php script, and then redirecting, then its
something like this:

** php script*
if (TRUE == $jump) {
 yes yes, lets be complient
header("Location: http:www.somewhere.compage.html");
}

** html page **
html
headtitle...titlehead
body
h1Hello worldh1
pyou were redirected from phpp
body
html

No comments:

Post a Comment