Jump to content


Photo

What does setcookie do in My function??


  • Please log in to reply
2 replies to this topic

#1 ramu_rp2005

ramu_rp2005
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 17 March 2006 - 04:36 AM

hi guys,
i've a function:

if ( isset ($LocationID) )
 {
    
ob_start();
    
setcookie("HostLocationID",$LocationID);
    ob_end_flush();
    //echo "===$LocationID====";

 
}


Now, wht does this setcookie function do over here.does it pass any value to another form.




#2 shortj75

shortj75
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationPort Huron,mi

Posted 17 March 2006 - 05:06 AM

no it drops a cookie in your visitors cookie file in the home computer
The Short One

hopfully this helps if it doesn't sorry
i won't write the code for you!!! you don't learn that way

#3 ramu_rp2005

ramu_rp2005
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 17 March 2006 - 05:11 AM



ok.where will that visitors cookie file be stored.the location id used here is not assigned any value.this is my first form of the web page,so from where the $locationid value come from.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users