Jump to content

[SOLVED] image submit button


nezbo

Recommended Posts

Hi all

 

I have this code and i cant get it to submit the same way as a submit button

 

		echo "<table cellspacing=1 class=\"modual\">";
	echo "<form action=" . $_SERVER['PHP_SELF'] . " method=\"post\" name=\"userLogin\">";
	echo "<tr class=\"tHedder\"><td><span class=small><strong>" . H_SIGN_IN . "</strong></span>";
	echo "<tr class=\"modual\"><td><span class=small>" . F_USER_NAME . "</span><br><input type=text name=userName size=10 />";
	echo "<br><span class=small>" . F_PASSWORD . "</span><br><input type=password name=password size=10 />";
	echo "<br><div align=\"center\">"; ?> <input type="image" name="submitLogin" src="images/signin.gif"  width="75" height="28" /> <?php
	echo "</div><div align=\"center\"><a href=\"forgotpassword.php\"><span class=small>" . L_FORGOT_PASSWORD . "</a></span></div>";
	echo "<div align=\"center\"><a href=\"requestRegister.php\"><strong><span class=small>" . L_REQUEST_USER . "</a></span></strong></div></td></tr>";
	echo "</form>";
	echo "</table>";

 

has any one any idea how i can get it to work like a proper button?

 

Neil

Link to comment
Share on other sites

i have changed the 'post' to a 'get' on the form and it then shows in the address bar

 

submitLogin.x=40&submitLogin.y=12

 

i am sure this is why me

 

 if (!$_post[submitLogin])

 

dose not work. Is there any way to stop the x.y being added?

 

Neil

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.