< form>的问题和动态生成的链接 [英] Problems with <form> and Dynamically-generated links

查看:75
本文介绍了< form>的问题和动态生成的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直接与此帖子帖子相关,我在执行@提供的一些合理建议时遇到了麻烦肖恩,因为您在此页面上可以看到:

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 -我已经将表格标签包裹在表格元素周围,但是表格似乎无法正常工作,也没有任何东西被张贴".我已经将代码更改为实验性,但是还没有找到解决方案,并且没有发现任何地方的搜索被证明是有用的.

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!

谢谢!

P.S.我以为我可能将表单元素包装在动态生成的内容周围的事实可能就是为什么表单无法正常工作的原因,但这对我来说意义不大,而且我之前已经做过,所以不能是吗,可以吗?

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?

很久以前,我知道道歉. :)

I know, it's long, apologies in advance. :)

<?php
   // (c) code removed ;) problem solved - thanks to everyone who helped!
?>

推荐答案

我认为您的问题在于:

function submit() {

             document.myform.submit();

             }

尝试:

function submit() {

                 document.getElementById('ct_form').submit();

                 }

您似乎在页面中使用jQuery,因此您也可以使用:

It looks like you are using jQuery in the page so you could also use:

function submit() {
    $('#ct_form').submit();
}

这篇关于&lt; form&gt;的问题和动态生成的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆