PHP - stop calling on refresh

Posted by Ross on Stack Overflow See other posts from Stack Overflow or by Ross
Published on 2010-04-12T09:52:49Z Indexed on 2010/04/12 10:23 UTC
Read the original article Hit count: 291

Filed under:
|
|
|
|

I need my class to create a new blank record when the page opens up the problem I am having is when the page refreshes it keeps incrementing by 1, if I write a session to keep the variable the next time I go back it does not increment. Any ideas?

if(!isset($_POST['record_no'])) {

echo $_POST['record_no'] =
$projects->insert__blank_project(); }

else { print "already Set";

}

© Stack Overflow or respective owner

Related posts about php

Related posts about sessions