Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

PHP posting problem

$
0
0

I have a form that contains a function. i want this function to be activated only when the user reposts the page to itself. (php_self).

 

ie. the user access the page and the function is hidden, the user then inputs data, repost the page and the function is activated.

 

I've tried flagging the function with a variable - $var = 0, then $var = 1 at the end of the page but $var just resets itself to 0 when the page is posted.

 

Sure this is simple but I just cant get it?

 

thanks


Viewing all articles
Browse latest Browse all 13200

Trending Articles