Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Place a cookie if validated form ...
Old 11-15-2010, 12:56 AM Place a cookie if validated form ...
Banned

Posts: 17
Name: new york
Trades: 0
Hello

It should not be difficult for the pros, but I blocked ...

I do not want to put a cookie only if the form is accepted ... POST variables ['username'] does not work because anyone that gets a cookie in this case ... even if the username is already taken ...

Thank you for your help!
edson1314 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-15-2010, 03:15 PM Re: Place a cookie if validated form ...
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Can you explain your question more clearly?

To determine whether to set a cookie, figure out the conditions you want and then...
PHP Code:
if ($conditions_are_met) {
  
setcookie("my_cookie"$cookie_valuetime()+31536000); //1 year cookie

__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Place a cookie if validated form ...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11443 seconds with 12 queries