Jump to content

How to use the input fields of a form?


Thurofylakas

Recommended Posts

I have a page with 5 inpute text fields and an image on the end of it.

How can I make with php the form save the 5 input fields on a txt when the user clicks on the image?

 

I did it with a submit button but I want to do it with clicking the image as well.

 

also how can I use the input text field on my form?Is there a way or is only with post and get functions throun another php page?

 

thank you

 

Link to comment
https://forums.phpfreaks.com/topic/153714-how-to-use-the-input-fields-of-a-form/
Share on other sites

Simply style the submit button, setting the background to the image and giving it the appropriate dimensions?

 

If want to output the form values, they can be accessed from $_POST or $_GET depending on what your form was set to.

http://www.w3schools.com/php/php_forms.asp has a nice tutorial and some nice examples. In their CSS section I'm pretty sure they'll have something about styling buttons as well.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.