Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2014, 07:46 PM
Registered User
 
Join Date: Sep 2014
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Text from one page to next page

I am not a programmer, so please be patient.

A Page has been working for years and with some past update stopped working.

I was entering the name of the school whgere a suicide occurred and the name stopped being passed to the next page.

Code from Page A

<form Name="FormA" Method="Post" Action="OPageS.asp">

<P><Font Color="#42A827"><B>Name of High School </B><Input Type="Text" Name="txtHSName" Size="19" MinLength="4" MaxLength="21">
&nbsp;&nbsp;&nbsp;&nbsp;If Named After an Individual, Last Name Only!</Font></P>

Code From Page B

<form Name="FORM1" Method="POST" Action="OPageZ.asp">

No longer sending this field

Response.Write Request("txtHSName") & " " & HighSchool & " "%><Br><%

Does anyone know why it stopped working?
 
Old September 17th, 2014, 08:21 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Your problem in not clear to me. Has is 'stopped' for a particular search or is it failing for any search? If its for a particular search post the search, it could be a certain character E.G a quote.

> Does page A post to page B? If so I assume the name of page B is OPageS.asp?

> Is there more than one form on page A? If so make sure it has two closing </form> tags. Also make sure the second opening <form..> tag is after for first closing </form> tag.

> Perhaps something has happened to your value somewhere in the receiving page (which I think is page B? ) Here is a good test for this:
1.. Place this :
response.write request.form("txtHSName") & "===myValue<br>"
at the very top of the receiving page.
2.. Go to the form on the sending page (which I think is page A? ) and submit a search.
2..a. Do you see the value, and of course the '===myValue' which will be tacked on the end?
2..b. Or do you only see the '===myValue'?

If 2.b is your answer your issue is on the posting page
If 2.a is your answer the value is being posted so move the response.write down the page, re-test, move and re-test.......until you find where the value stops displaying, your issue is between where it last displayed and here...
__________________
Wind is your friend
Matt
 
Old September 18th, 2014, 07:16 AM
Registered User
 
Join Date: Sep 2014
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Text from one page to next page

The data I enter in txtHSName in Page A does not make it to Page B to even do the search.

Thanks for getting back to me.
 
Old September 18th, 2014, 07:19 AM
Registered User
 
Join Date: Sep 2014
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Text from one page to next page

Your assumption is correct, there is no value in Page B. The real name is OPageS.asp. I am just trying to use A and B to simplify things.
 
Old September 18th, 2014, 07:35 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Your brief response which does not even answer all my questions does not give me the desire to give you my time to be honest. To get the most out of forums You should read responses more carefully and answer all their questions in detail. Lest try again

> It should be obvious to you if the value is not at the top of page B then there is a problem with the form post. Are any other values posting from this form to page B?

> Check for typos in the 'xtHSName'

> view the source on page A:
- Check your <form> </form> tags (the questions you ignored in the last post)
- Search for 'xtHSName' do you have more than one form control

> If no luck Change 'xtHSName' to some other name on page A and page B. Maybe it is being effected by something that is not obvious to you.

> Now I am out of ideas. Tidy up your code and post it
__________________
Wind is your friend
Matt
 
Old September 21st, 2014, 07:03 AM
Registered User
 
Join Date: Sep 2014
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Array does not appear on next page

Thanks for getting back to me.

It started right after and automatic update and happens on every search. The It guys at the Wichita State said I was lucky it was working for years.

They suggested I reprogram it and make a large string.

Field1 = Field1 & Field2 in a do Loop and then pass that string to the next page.

This will take an extra page but at least it works.

This was a severe emergency and we are back up and running.

Thanks Again for your Assistance.

Tony
 
Old September 21st, 2014, 07:52 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

No worries, am happy to help

I am glad your problem is sorted however your situation makes no sense.

;;;They suggested I reprogram it and make a large string
Wow, I don't even know what this means. Are they saying your page can no longer post form variables. This is one of the strangest things I have ever heard. Does every .asp on the server also have to 'reprogram'

Your guys at 'Wichita State' are shady. If they are a hosting company you should change......
__________________
Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing objects between One Page to next page muralidharan.d ASP.NET 1.0 and 1.1 Basics 2 July 3rd, 2007 07:48 PM
passing values from ASP page to a popup ASP Page astrosmurfboy Classic ASP Basics 3 April 21st, 2004 08:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.