PCInk

msg:4315470 | 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! Is there any JavaScript on the page? Try disabling it in the browser to see if it the culprit. 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.
|
Fotiman

msg:4315475 | 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.
|
rocknbil

msg:4315554 | 11:25 pm on May 20, 2011 (gmt 0) |
Tell us it's this <input type="submit"> and not <input type="button"> right?
|
wheel

msg:4315574 | 1:11 am on May 21, 2011 (gmt 0) |
yes, it's input type=submit. I tried validating. Lots of errors, but nothing related to the form. Turned off javascript, no change. | 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.
|
wheel

msg:4315758 | 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.
|
Fotiman

msg:4315761 | 7:16 pm on May 21, 2011 (gmt 0) |
Your first one is missing a < before /dig.
|
Fotiman

msg:4315762 | 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.
|
wheel

msg:4315782 | 8:57 pm on May 21, 2011 (gmt 0) |
Resolved. 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.
|
Vladimir

msg:4316008 | 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.
|
virtualemployeeonlin

msg:4321516 | 11:21 am on Jun 3, 2011 (gmt 0) |
Yes, I agree with Vladimir.
|
|