/    Sign up×
Community /Pin to ProfileBookmark

Move data from one page to the next

Hello, on my website for people to get to the secured portion they must answer 5 mutiple choice quetions and the answer to those questions is the answer. for example 1. a 2. d 3. e 4. b 5. c so the password would be adebc and I have text boxes at the bottom for them to feel in there answers. Is there any way for when they hit “go to login page” this data will carry over into the login box? Thanks

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzFeb 14.2006 — You would need to use a server-side language, like PHP or CGI/PERL, to do that.
Copy linkTweet thisAlerts:
@tbs010authorFeb 14.2006 — Well could you tell me how to do that.
Copy linkTweet thisAlerts:
@pcthugFeb 14.2006 — Firstly what server-side technologies do you have available to you?
Copy linkTweet thisAlerts:
@NedalsFeb 14.2006 — Do you mean something like this, where the combined answers are submitted as a password?
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;

&lt;html lang="en"&gt;
&lt;head&gt;&lt;title&gt;Untitled&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;meta http-equiv="Content-Script-Type" content="text/javascript"&gt;
&lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;

&lt;script type="text/javascript"&gt;
&lt;!--
function get_pwd() {
var pwd = "";
for (i=1; i&lt;6; i++) {
for (j=0; j&lt;3; j++) {
question = document.forms[0]['ans'+i];
if (question[j].checked) { pwd += question[j].value; }
}
}
document.forms[0].passwd.value = pwd;
return false;
}

//--&gt;
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;pre&gt;
&lt;form onsubmit="return get_pwd()"&gt;
a b c
Q1 &lt;input type="radio" name="ans1" value='a'&gt; &lt;input type="radio" name="ans1" value='b'&gt; &lt;input type="radio" name="ans1" value='c'&gt;
Q2 &lt;input type="radio" name="ans2" value='a'&gt; &lt;input type="radio" name="ans2" value='b'&gt; &lt;input type="radio" name="ans2" value='c'&gt;
Q3 &lt;input type="radio" name="ans3" value='a'&gt; &lt;input type="radio" name="ans3" value='b'&gt; &lt;input type="radio" name="ans3" value='c'&gt;
Q4 &lt;input type="radio" name="ans4" value='a'&gt; &lt;input type="radio" name="ans4" value='b'&gt; &lt;input type="radio" name="ans4" value='c'&gt;
Q5 &lt;input type="radio" name="ans5" value='a'&gt; &lt;input type="radio" name="ans5" value='b'&gt; &lt;input type="radio" name="ans5" value='c'&gt;

passwd: &lt;input type="text" name="passwd"&gt;
&lt;input type="submit" value="login"&gt;
&lt;/form&gt;

&lt;/pre&gt;
&lt;/body&gt;
&lt;/html&gt;
×

Success!

Help @tbs010 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...