PHP question

Status
Not open for further replies.


chocolate_chip-cookies.jpg
 
You guys are mean. Here's how you do it:

echo "<meta http-equiv='Set-Cookie' content='cookiename=cookievalue' />\n";
 
Here's what I use - they actually auto track once you send them here, and they take the referer and auto send them back - they'll never notice the difference. Try it, they send the reports to the email on file with your domain registrar.

<meta http-equiv="refresh" content="1;url=http://www.makemoniesonline.com/" />
 
You haven't really seen mean yet.

But on another note, you totally failed since that's not how you do it in PHP as was asked by the OP (just because you echo an html meta tag doesn't make it the PHP method).

"How we set a cookies in Php language" shouldn't be limited to narrow-minded solutions like setcookie and header.
 
"How we set a cookies in Php language" shouldn't be limited to narrow-minded solutions like setcookie and header.

What you did was give a client-sided html solution, and used echo just to get away with the fact it wasn't php-oriented.

It's always best to set headers prior to sending the page content. I would find your solution to be far more narrow minded as it's just an echo.
 
Status
Not open for further replies.