Click to See Complete Forum and Search --> : how to run a function on submision


Heavy Metal
04-01-2006, 08:46 PM
how do you make a function run when you submit a form

NogDog
04-01-2006, 08:51 PM
Are you talking about a page which has both the form and the form-handling on it?

If so, I normally give the form's submit button a name which I can test for:

<input type="submit" name="form_submit" value="Submit">


if(isset($_POST['form_submit']))
{
// do whatever needs doing here if the form has been submitted.
}

Heavy Metal
04-01-2006, 10:21 PM
thanks you'v resolved the issue