PHP Solutions
Home
Ubuntu
php
Forum
Home
Ubuntu
php
Forum
Categories
php-html (1)
Tags
form
html
image-submit
input
Showing category "resources"
(Show all posts)
How submit a form using input type="image" with php isset
Posted by on Thursday, August 18, 2011, In :
php-html
we can get or post a value of input type="submit" like
// html
<form method="post">
<input type="submit" name="send" value="send now" />
</form>
// php
if(isset($_POST['send'])) echo $_POST['send'];
//result is -> send now
but
if we replace the input type of above example, like :
<input type="image" name="send" src="button.png" />
then result will be empty
The reason is :
An element which input type="image" specifies as image resource to display. And there are two values of x and y (send_x and send_y) w...
Continue reading ...
« Back to posts
Subscribe to this blog
Make a
free website
with
Yola