/    Sign up×
Community /Pin to ProfileBookmark

Passing textbox values through 2 pages

I am trying to submit the value of two textboxes (txtboxVal1 and txtboxVal2) through a querystring to a page that is not the next page in the process. I have tried using the

[CODE]value1= request.form(“txtboxVal1”)[/CODE]
[CODE]value2= request.form(“txtboxVal2”)[/CODE]

method to pick up the text from the previous page, and I am then trying to send it to the next page by using

[CODE]Response.redirect”http:nextpage.asp?value1=” & value1 & “&value2=” & value2[/CODE]

The second page seems to be picking up the values fine, but then not passign them on to the third page.

I am using two pages due to the next on in the series writing to an SQL database on one server, and the next page being located on a seperate server which does some checking on the values entered.

Please ask if I can give anymore information in order to make this make more sense! Unfortunatly I can not give the URL’s as it is on a closed network

Thanks

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 10.2005 — Submit the first page to a server side script that builds the second page. Hide the values from the first page as hidden fields in the second page. Pass the second page to the final server side script.
Copy linkTweet thisAlerts:
@kierauthorAug 10.2005 — I think I understand what you mean, but have no idea how to do that! How can I make the values of the hidden fields on the second page be the same as the fields on the first, and how can I pass these values over to the third page? (would the reuest.form function work again for this part?)

Thanks
Copy linkTweet thisAlerts:
@CharlesAug 11.2005 — I think I understand what you mean, but have no idea how to do that! How can I make the values of the hidden fields on the second page be the same as the fields on the first, and how can I pass these values over to the third page? (would the reuest.form function work again for this part?)

Thanks[/QUOTE]
What server side scripting language are you using?
Copy linkTweet thisAlerts:
@ExuroAug 11.2005 — Stick something like this on your second page:
<form action="third.asp" method="get">
<input type="hidden" value="[color=red]<%=Response.Form("txtboxVal1")%>[/color]" name="txtboxVal1">
<input type="hidden" value="[color=red]<%=Response.Form("txtboxVal2")%>[/color]" name="txtboxVal2">
<input type="submit">
</form>
Copy linkTweet thisAlerts:
@kierauthorAug 11.2005 — What server side scripting language are you using?[/QUOTE]

Sorry Charles, not 100% sure what you mean. The server I'm writing to is an SQL server, and the pages are being doen in ASP
Copy linkTweet thisAlerts:
@CharlesAug 11.2005 — Then ASP is your server side language. Posting your question over on that forum should prove useful.
Copy linkTweet thisAlerts:
@kierauthorAug 11.2005 — Thanks very much, I'm still getting confused as to which bits are in which language, as I'm trying to update and develop someone elses work! Thanks again
×

Success!

Help @kier 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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