Quote Originally Posted by Austinwhite View Post
what does this code do?
Code:
 <input type="hidden" name="secretNumber" value="<?php echo $secretNumber; ?>">
and i didnt understand how this works.

and also why is the action left blank? shouldnt be it like action ="fileName.php"?

http://php.flashwebhost.com/austin/day8.php

INPUT type = hidden means an input field, but user can see it. It is used when we need to submit some data to server, but.. we don't want visitors see it.

When

[code]
<form method="GET" action="">
[/coe]

It it submit to itself, that is all data send to the code itself. We use

Code:
if (isset($_GET['secretNumber'])) {
and


Code:
if (isset($_GET['userNumber'])) {
To see if any value is sent to the server.