php - How do I post on click of an image? -


i wondering if possible me post name on click of image variable. when have text field , hit submit , variable posted, want except on click of image, display image. anyways tried , dont thing... appreciated thanks!

<html> <body> <img src = "img/tumblr_m4zptebtju1qm0f2jo1_500.gif" name = "img" method = "post" action = ""> <?php     $img = $_post["img"];     echo "<img src = "$img">"; ?> </body> </html> 

just use

<input type="image" src="images/f.jpg" name="submit" /> 

as submit button


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -