我想从我的html页面重定向到网站登录页面。我有电子邮件ID,我需要在网站中设置与userid相同。我需要在重定向时填充它,这样用户只需要输入密码。
提前致谢。
答案 0 :(得分:0)
请发布一些代码,至少让我们知道您使用的是哪种编程语言??
通常可以通过以下方式解决:
<?php
$blablabla = $_GET['username'];
?>
Username: <?php echo $blablabla ?>
答案 1 :(得分:0)
以下是我在问题下面的评论主题中的最终答案。
查询字符串:only if the developer of Dropbox added a specific custom snippet of code that fills in the username if a specific querystring parameter is passed. How to find out? Ask Dropbox (or check their FAQ/wiki if they have any). Personally, I doubt it. But that's just an experienced guess.
jQuery :As mentioned before, no. Technically speaking, you could do it via the Console in your Web Developer Toolbar (Chrome/FF/...), but it'd be a manual task the end user has to perform, and considerably more difficult than actually entering the username. This technically adheres to your question, but goes way out of scope in regards to complexity and pointlessness of the task.
其次:Is this not a problem that solves itself if the enduser's browser stores his form input? They'd only have to enter it once (IF the browser doesn't already suggest their email address from the first try, which is what Chrome and FF like to do (from personal experience)).
您想要实现的目标是不可能的。但是,你试图解决的问题相对微不足道,因为问题已经几乎完全被你的最终用户&#39;浏览器存储输入的表单值。