确定提交的页面表单 [英] Determine which page form submitted from

查看:69
本文介绍了确定提交的页面表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

另外,还有一些我需要帮助的东西,我有一个表格,人们可以把信息输入并发送给我一封电子邮件,其中包含他们的电子邮件和他们的名字的评论,但我想让它以某种方式点击它们每个页面上的按钮,它从每个页面获取某种信息,以便我知道他们从哪个页面点击它。

Also, theres something else i need help in, I have a form that people can put info in and sends me an email with the comments their email and their name, But i want to make it so that somehow when they click on the button on each page it gets some sort of info from each page so that i know from what page they clicked it from.

推荐答案

我已将此分开你的另一个线程,因为它是与该线程无关的不同问题。


您正在寻找的属性是location.href。这将为您提供当前页面的URL。
I''ve split this from your other thread because it''s a different question not related to that thread.

The property you''re looking for is location.href. This will give you the URL of the current page.



我已经从您的其他线程拆分了这个,因为它是不同的与该主题无关的问题。


您正在寻找的属性是location.href。这将为您提供当前页面的URL。
I''ve split this from your other thread because it''s a different question not related to that thread.

The property you''re looking for is location.href. This will give you the URL of the current page.



hmmm当我发送电子邮件时,我将如何将其翻译成我的表格?任何想法?

hmmm how will i translate this into my form when it sends me the email? any ideas?


嗨Dude,只需要一个hiddden inpu元素就可以使用document.URL存储用户的URl。这样当他们将代码发送给你时。您还将通过隐藏字段获取URL。任何疑问都会回复它


问候

Ramanan Kalirajan
Hi Dude, just have an hiddden inpu element in that thing you just store the URl of the user, using document.URL. so that when they send the code to u. you will get the URL also through the hidden field. Any doubts post back it

Regards
Ramanan Kalirajan


这篇关于确定提交的页面表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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