|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-07-15 15:02 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 11:00:01 2025 UTC |
Run this script using the default value provided when you "submit" it: <title>Test</title> <center> <h1>Test</h1> <? if ($posted): $d2 = 1999; $d1 = intval($d1*100); if ($d1 == $d2): echo "They are equal"; else: echo "$d1 ", gettype($d1), " is not equal to $d2 ", gettype($d2); endif; else: $d1 = 1999; $d1 = sprintf("%.2f",$d1/100); echo "<form method=post action=test.html>"; echo "<input type=input name=d1 value=$d1>"; $posted = 1; echo "<input type=hidden name=posted value=$posted>"; echo "<input type=submit value=submit></form>"; endif; ?>