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
Post a Comment