与这篇帖子直接相关,我在实施@sean给出的一些合理建议时遇到了困难,因为正如您在此页面上看到的:
http://www.onestopfasteners.com.au/checkout。 php - 我已经将表单标签包裹在表格元素周围,但表单似乎不起作用,也没有任何内容被“POST”。我已经更改了 abit 周围的代码进行实验,但还没有找到解决方案,并且任何地方的搜索都没有被证明是有用的。
我将不胜感激任何帮助。我完全困惑了!
谢谢!
PS 我认为也许我将表单元素包裹在动态生成的内容周围可能是表单不起作用的原因,但这对我来说没有多大意义,而且我以前已经这样做过,所以可以'不会吧,可以吗?
Code:
我知道,很长,提前道歉。 :)
<?php
// (c) code removed ;) problem solved - thanks to everyone who helped!
?>
Related directly to this post, I am having trouble implementing some sound advice given from @sean, because as you can see on this page:
http://www.onestopfasteners.com.au/checkout.php - I have wrapped the form tags around the table element, but the form just doesn't seem to be working, and nothing ever gets "POST"ed either. I've changed the code around abit to experiment, but haven't found a solution, and no search anywhere has proven to be useful yet.
I'd appreciate any help at all. I'm completely baffled!
Thanks!
P.S. I thought that maybe the fact that I am wrapping form elements around dynamically generated content could be why the form isn't working, but that doesn't make much sense to me and, I've done it before, so that can't be it, can it?
Code:
I know, it's long, apologies in advance. :)
<?php
// (c) code removed ;) problem solved - thanks to everyone who helped!
?>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为你的问题是:
尝试:
看起来你在页面中使用 jQuery,所以你也可以使用:
I think your problem is with:
Try:
It looks like you are using jQuery in the page so you could also use:
您使用 javascript 提交表单,但您引用的 document.myform 不存在。
试试这个。
Your using javascript to submit the form, but you are referencing document.myform which doesn't exsist.
try this instead.
这里不需要
document.getElementById
。顺便说一下,document.myform
依赖于FORM
元素的NAME
属性document.getElementById
is not necessary here.document.myform
relies onNAME
attribute ofFORM
element, by the way