Re: [PHP] web reload

2003-01-05 Thread Marek Kilimajer
Yes, you are right $cookie = $HTTP_COOKIE_VARS["mycookie"]; should be in *else* part Jason Sheets wrote: This will always assign the value of $HTTP_COOKIE_VARS["mycookie"] to $cookie, overwriting the $cookie = $form_value assignment which is what you want if the page is being reloaded but is no

Re: [PHP] web reload

2003-01-05 Thread Jason Sheets
You could use a header() with Location: but why do you need to reload the page? If you already have your data in $form_value then the data is already available to you. If you are using a newer version of PHP (> 4.1) you can reference the information from the $_COOKIE array as well. You could do

Re: [PHP] web reload

2003-01-05 Thread Marek Kilimajer
TACKEL wrote: Hi, I have a php file that set up a cookie that receives from a form and also uses it. My problem is the first time the value is submitted via form. The cookie is setup but I cannot not use it so I'd need to reload the web after setting up the cookie. Myfile.php if ($form_va

[PHP] web reload

2003-01-05 Thread TACKEL
Hi, I have a php file that set up a cookie that receives from a form and also uses it. My problem is the first time the value is submitted via form. The cookie is setup but I cannot not use it so I'd need to reload the web after setting up the cookie. Myfile.php if ($form_value != "0"){