Jump to content

trouble submiting form


droidus

Recommended Posts

i am submitting a form with this button, when run-over, changes the image.  here is my button code:

<a class="loginBtn" href="" name="login">Login</a>

here is my php code that takes it:

if (isset($_POST['login'])) {

 

when the button is clicked, it does nothing.  why won't it submit?

Link to comment
Share on other sites

can you give a reason why it should do anything? I can't see one..

 

as for practical form submissions: wrap the form in <form> tags and place a submit button inside of it.

 

<form action="action.php"  method="post">
   <input type="text" name="fatgorillas" value="" />
   <input type="submit" name="submit" value="submit this form" />
</form>

Link to comment
Share on other sites

the only problem with it now, is that it looks like its the shape of a button... besides that, it works!

You can change that with css. just expirement a bit and keep in mind elements like this have some standard background borders margins etc. You can change all that.

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.