Thurofylakas Posted April 12, 2009 Share Posted April 12, 2009 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 More sharing options...
Axeia Posted April 12, 2009 Share Posted April 12, 2009 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. Link to comment https://forums.phpfreaks.com/topic/153714-how-to-use-the-input-fields-of-a-form/#findComment-807783 Share on other sites More sharing options...
jackpf Posted April 12, 2009 Share Posted April 12, 2009 You can actually just use <input type="image" src="image.png" /> It's a bit simpler than styling an input button. Link to comment https://forums.phpfreaks.com/topic/153714-how-to-use-the-input-fields-of-a-form/#findComment-807818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.