Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将URL参数传递给sendy表单_Html_Wordpress_Forms_Parameter Passing_Sendy - Fatal编程技术网

Html 将URL参数传递给sendy表单

Html 将URL参数传递给sendy表单,html,wordpress,forms,parameter-passing,sendy,Html,Wordpress,Forms,Parameter Passing,Sendy,我想在Sendy表单的字段“name”中传递一个参数。我想在URL中写入,如www.mywebsite.com/?src=works,并且“works”显示为订阅者的名称。但我如何实现这一点?我已经尝试过“GET”,但没有成功。谢谢 <form action="http://trackingit.in/subscribe" method="POST" accept-charset="utf-8"> <label for="name">Name</label&

我想在Sendy表单的字段“name”中传递一个参数。我想在URL中写入,如www.mywebsite.com/?src=works,并且“works”显示为订阅者的名称。但我如何实现这一点?我已经尝试过“GET”,但没有成功。谢谢

<form action="http://trackingit.in/subscribe" method="POST" accept-charset="utf-8">
    <label for="name">Name</label><input type="text" name="name" id="name">&nbsp;<label for="email">Email</label><input type="text" name="email" id="email">&nbsp;<input type="hidden" name="list" value="(hidden)">
<input type="submit" name="submit" id="submit">
</form>&nbsp;

姓名电子邮件

您标记为php,但没有代码支持问题Yes抱歉。已删除php。原因可能在您的php中。您可能应该发布它,然后再次添加php标记。或者你没有任何php?我使用Optimizepress(wordpress插件),我有一个字段来插入html表单。表单工作正常,但我想传递一个参数以另存为“名称”。可能是它的wordpress问题吧?如果从php请求中获取请求参数不是一个选项,那么您可以使用javascript,下面介绍如何使用。然后使用javascript(任何框架jquery、angualr等)将请求参数值设置为name。