• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP Problem

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:
PHP:
if($submit){
//do something
}
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?
 
Back
Top