Jump to content

[SOLVED] CALLING DIFFERENT SCRIPT FUNCTIONS


pwes24

Recommended Posts

Hello everyone.

 

Say you have two forms on a page that gather different information. How do i make sure that script working on a particular form is called when the other form is submitted? Do I use,

            if($_POST['submit']) { ?

and does the 'submit' stand for the name of the submit button?

 

Thanks for reading this post.

What do mean the form field? Can you explain more please?

Thank you.

 

 

Ok let's say this is the HTML form:

 

 

<html>
<body>
<form>
<input type="text" name="value">
</form>

 

Then you're PHP would look something like this:

 

If (isset($_POST["value"]))
{
//code
}
Else
{
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.