This is a discussion on PHP Form with buttons within the PHP General forums, part of the PHP Programming Forums category; Hi, We have a form. All the 'buttons' on the page are actually HTML links that are submitted in this ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, We have a form. All the 'buttons' on the page are actually HTML links that are submitted in this fashion: <a href="javascript:document.formname.action = 'viewdata.php';document.formname.submit();">VIEW DATA</a> Now, a normal submit button has been added to the form: <input style="display:none" type="submit" name="Submit" value="Search Data"> My question is, how can we keep the HTML buttons, wihch each link to a different place using the same method as above, and have the normal submit button, which also links someplace else? At this time, the form does not have an action: <FORM name="formname"> Can anyone help us with this? Thanks! John |