| 7:09 pm on May 20, 2011 (gmt 0)|
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.
| 7:16 pm on May 20, 2011 (gmt 0)|
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.
| 11:25 pm on May 20, 2011 (gmt 0)|
Tell us it's this
| 1:11 am on May 21, 2011 (gmt 0)|
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.
| 6:42 pm on May 21, 2011 (gmt 0)|
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.
| 7:16 pm on May 21, 2011 (gmt 0)|
Your first one is missing a < before /dig.
| 7:18 pm on May 21, 2011 (gmt 0)|
You have 2 elements, 1 with an id that matches the name of the other... best to avoid that.
| 8:57 pm on May 21, 2011 (gmt 0)|
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.
| 8:07 pm on May 22, 2011 (gmt 0)|
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.
| 11:21 am on Jun 3, 2011 (gmt 0)|
Yes, I agree with Vladimir.