agiantdwarf
New Member
Hello all,
I am writing a script that you fill out a form, and it submits the form data to itself (ie <form action="<?php $PHP_SELF?>">), with a hidden field named "submit" to see if the form has been submitted when the page reloads.. The problem is when I do some php code like this:
The problem is, when I load the page for the first time, it says $submit is undefined, with a warning.
How do I fix this?
I am writing a script that you fill out a form, and it submits the form data to itself (ie <form action="<?php $PHP_SELF?>">), with a hidden field named "submit" to see if the form has been submitted when the page reloads.. The problem is when I do some php code like this:
PHP:
if($submit){
//do something
}
How do I fix this?