Posts Tagged ‘header’
Using a header tag in PHP I’m getting a invalid URI error. Help Please.?
Here is my code for this:
if(isset($_COOKIE['refurl'])){
header(“Location: /”.$_COOKIE['refurl']);
exit();
}else{
header(“Location: http://www.homepage.com”);
}
after the header is sent and on the page i get the error msg the address bar says this
http://www.homepage.com/www.homepage.com/articles/article1/
any ideas how to fix this?
// I had to chang the actual ur’sl for security reasons
the url cut off but it looks like this
http://www.h.com/www.h.com/articles/article
with the h’s standing for the actually site
i tried removing the slash then I get the
www.h.com/www.h.com/articles
over and over again in and endless loop
$20 for the simplest php bulletin board – spare me the configs with a PHP?
This is a totally simple bulletin board. We have a header already, and a typical linux/php/mysql setup (with cpanel if that matters).
The URL will not be publicly available, so we don’t need security.
The page says:
Welcome
Your Name:
What are you grateful for? (big text box, we can play with the dimensions]
Submit!
And then says
Here are the Responses from Your Community:
[and the lists the previous responses. This might look like:]
—-
John said:
I’m grateful for my dog.
Fred said:
I’m really grateful for my two kids.
etc
—-
at the bottom have the form again for the person to enter
Once people submit the page, they go to a page that looks just like the one above, but without the text box.
Am I allowed you paypal you $20 for the answer? I surely would, and be grateful for it!
PHP Tutorials: Dynamic pages (Part 1)
Creating a standard webpage template, only the content changes when a link is clicked. Saves time duplicating each file, and makes it a lot easier if something needs to be changed, like a menu item, header, or footer.
