PHP Classes

Replace Form Submit button with image button

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  Replace Form Submit button with...  >  (Un) Subscribe thread alerts  
Subject:Replace Form Submit button with...
Summary:How to replace the Standard Form Submit button with an Image
Messages:5
Author:Chris Grafix
Date:2005-11-05 19:51:00
Update:2008-01-17 18:54:01
 

  1. Replace Form Submit button with...   Reply   Report abuse  
Picture of Chris Grafix Chris Grafix - 2005-11-05 19:51:00
I would like to replace the standard Form Submit button used in the Form generation and validation class. I tried change the inpute type <image> instead of <submit> but this was not working. How can I implement <INPUT TYPE="image" SRC="images/submit.gif" HEIGHT="30" WIDTH="173" BORDER="0" ALT="Submit Form"> in the Form class.

Thank you for your consideration,
Chris Grafix
InteractGrafix

  2. Re: Replace Form Submit button with...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-11-06 17:36:20 - In reply to message 1 from Chris Grafix
The example test_form.php shows how to do that. It should be like this:

$form->AddInput(array(
"TYPE"=>"image",
"ID"=>"image_submit",
"SRC"=>"images/submit.gif",
"ALT"=>"Submit Form",
"STYLE"=>"border-width: 0px;"
));

  3. Re: Replace Form Submit button with...   Reply   Report abuse  
Picture of Chris Grafix Chris Grafix - 2005-11-06 20:14:15 - In reply to message 2 from Manuel Lemos
Thank you so much. This is a great php-site. I can only recommend it.

  4. event that should generate when...   Reply   Report abuse  
Picture of ramachandran ramachandran - 2008-01-17 13:15:46 - In reply to message 2 from Manuel Lemos
hai!
i am a beginer in PHP. and i want to know the following things

1) want to select options from 3 combobox. say location, name, domain. and then if we click on the submit button the values which are selected from the combo box will be sent for the queries in where clause and get the result. i got the design but i don't know how to use that with the queries.

  5. Re: Replace Form Submit button with...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-01-17 18:54:01 - In reply to message 4 from ramachandran
I am not sure what you mean.

If you want to make queries based on the selected options, just use the class GetInputValue function for each of the select values you want to use.

If this is a subject different from the subject of this thread, please post a new thread instead of replying to this.