Jump to content
Sign in to follow this  
yoshida

multiple submission buttons

Recommended Posts

EDITMade it work. Just forgot the OR boolean is used like || and not |.Sample code removed.

Hi. I'm working on a content management page with multiple scripts loaded into one form. Each script is loaded using <?php require_once(form1.php)?> and contain both the handler and the form fields, and a submit button. The handler is executed when the submit button for that script is pressed. The handler will know if it is pressed using <?php if (isset($_POST[submit1])) { execute handler }?> and if the button is not pressed it will be bypassed to show the form field. If the handler is executed, it will show a notification message and validation results.I want to make a master submit button for tempmanpage, named 'all'. So I'll have to alter the folowing line of code
if (isset($_POST['sub_head'])) {

to check whether the master submit button is being pressed. That means I'll have to include the 'OR' or '|' boolean. Couldn't find a way to make it work yet.If anyone knows a way to do this you made me a happy camper. If there's any other suggestion or recommendation based on the sample code I'll gladly listen but this issue has to be resolved first.Thanks in advance.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...