/    Sign up×
Community /Pin to ProfileBookmark

Parse text variable from form to another page

Hello all,

I want to parse just one text field’s variable from a form to another page’s text field in a form after pressed submit in the first form page.

Can anyone help me please?

Here is my code and I have no idea how to implement / fix this.

<form ACTION=”anotherPage.asp” METHOD=”POST” name=”form”>
<table align=”center”>
<tr>
<th align=”left”><font color=”#FF0000″>*</font>
User Name
</th>
<td>
<input name=”user_name” type=”text” title=”Enter Your User Name.” maxlength=”16″>
</td>
</tr>
</table>
</form>

Another page…

<form onSubmit=”return fieldsCheck()” METHOD=”GET” name=”form”>
<table align=”center”>
<tr>
<td>
<input name=”uname” type=”text” value=”<%=Request.QueryString(“user_name”) %>”>
</td>
</tr>
</table>
</form>

Can anyone provide me simple examples??

Thank you

Vic.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMay 08.2007 — Nearly.

[i]Request.QueryString[/i] reads GET requests.

[i]Request.Form[/i] reads POST requests.
<i>
</i>&lt;%=Request.Form("user_name") %&gt;
Copy linkTweet thisAlerts:
@GuessvicauthorMay 08.2007 — Hello Ultimater,

I have tried this thing and just tired it again it doesn't parse variable from "user_name" text field in Page1 to "uname" text field in Page2.

Page 1

<form name="form" method="POST" action="Page 2">

<input name="user_name" type="text" title="Enter Your User Name." maxlength="16">

</form>

Page 2

<form name="form" method="GET">

<input name="uname" type="text" value="<%= Request.Form("user_name") %>">

</form>

Please give more advise or any similar example.

Thank you

Vic.
×

Success!

Help @Guessvic 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...