Jump to content

Form Image As Button : Not Working


Cooper94

Recommended Posts

I have created a html form that when the image is pressed it will echo somthing out. But the code that is below seems to not work for what ever reason. I thank you all for your help and for your time!

 

<form action="" method="POST">
<center>
<table>
<tr>
<td>Callsign:</td> <td><input type="text" name="username" value="RPA" size="10" style="width: 79px;" /></td>
</tr>

<tr>
<td>Password:</td> <td><input type="password" name="password" size="10" max-size="5" /></td>
</tr>

<tr>
<td><input name="login" type="image" src="images/login.png" width="58" height="20"></td>
</tr>
</table>
</center>
</form>


<?php 
if(isset($_POST['login'])) { 
echo "lol";

}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.