PHP Form with buttons

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-14-2008
Mtek
 
Posts: n/a
Default PHP Form with buttons


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
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 06:50 AM.


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