note 104206 deleted from function.microtime by danbrown
| From: | danbrown@php.net | Date: | Wed, 01 Jun 2011 01:42:42 +0000 |
| Subject: | note 104206 deleted from function.microtime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180151@lists.php.net to get a copy of this message | ||
Note Submitter: Just a programmer...
----
Try this:
$_SESSION['formId'] = microtime();
then
$string = '<input type="hidden" name="formId" value=' .
$_SESSION['formId'] . '/>';
And then submit a form with this you get some unexpected results some of the times.
I've found that if you do not use echo $_SESSION['formId'] the variable change the
next time you come around. I tried putting an echo in front of my code and then it worked as
expected, without the echo I get weird results.
Now I will use another function to specify a formId.