Try restarting your browser first of all, I had a problem where Google Chrome would allow me to submit a form but wouldn't pass any fields. Took me a while to realise is was a browser problem!
Also, you could try changing the action to something local, just to see if cross-site form submissions are being blocked by the browser or perhaps even a firewall.
1st step should be to validate [validator.w3.org] your markup. Perhaps you have an extra quote or something causing your submit button to be "outside" of your form.
Tell us it's this
yes, it's input type=submit.
|just to see if cross-site form submissions are being blocked by the browser or perhaps even a firewall. |
Can't imagine it would be this though. I've sold calculators through the years that did this, never had a problem in my browser on any client's site.
OK, so this doesn't work:
<div id="getbtn"><input type="submit" name="getbtn">/div>
But this does:
<span class="getbtn"><input type="submit" name="getbtn"></span>
Except the second one doesn't give me a nice graphical button, it gives me the standard submit button (which is not what I'm looking to do). In the second one, I changed two things, the div to span, and id to class.
Your first one is missing a < before /dig.
You have 2 elements, 1 with an id that matches the name of the other... best to avoid that.
Thanks fotiman. That wasn't quite it, but almost. It seems surrounding the input tag with a div tag screws things up. THis does work:
<input type="submit" class=getbtn>
i.e. remove the div tags and it works fine.
If you are using id and name attributes for the CSS only, I would suggest to get rid of them at all. Use class attribute instead.
Yes, I agree with Vladimir.