Cookie problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

*This message is also posted in alt.php*

This is a part of a form I'm using:

if($sentmessage == '3'){
echo "You have already posted 3 times!";
$num = $sentmessage + 1;

if ($submit) {

  // process form
 // I want the cookie to increase its value at this point not by updating
the page
  $db=mysql_connect ("localhost", "***", "****") or die ('I cannot connect
to the database because: ' . mysql_error());
mysql_select_db ("****");

$today = date("F j, Y, G:i");
$name = html_entity_decode(strip_tags($navn));
$email = html_entity_decode(strip_tags($epost));
$phone = html_entity_decode(strip_tags($telefon));
$sn1 = html_entity_decode(strip_tags($sn1));

I need the cookie to run after submitting, or after this code:

if ($submit) {
 // process form

The problem now is that the cookie is increasing the value for
one update, not by submitting.


Re: Cookie problem

Reffo contained the following:

Quoted text here. Click to load it

See my reply in same.

And do not multipost. Crosspost, if you must.

Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs /

Site Timeline