Bluehost.com Web Hosting $6.95

Passing Varialbes

This is a discussion on Passing Varialbes within the PHP General forums, part of the PHP Programming Forums category; Hi, This one has me stumped. We have a PHP page which contains 2 forms. The second form, named DETAIL, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-31-2008
Mtek
 
Posts: n/a
Default Passing Varialbes

Hi,

This one has me stumped.

We have a PHP page which contains 2 forms. The second form, named
DETAIL, has 2 HTML buttons on the bottom. These are not standard
SUBMIT buttons. That is the way they want it.

Anyhow, the buttons, labeled EDIT & DELETE both call the same script
to perform the needed action. In addition, there is a javascript
function 'VALIDATE' called prior to the form submission.

We can easily just code an ONCLICK to submit the form with an onsubit
to call the VALIDATE function. however, this is what they want:

The want each button to call the same script to perform the action.
They do not want to pass any variables via the URL, AND still call the
VALIDATE function.

Can this be done? I've at this more than 3 hours. I cannot code a
hidden field, because I will not know which button they press.......

Can anyone help???

Thanks!!

John
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0