ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 8th, 2008, 09:33 AM
EM2 EM2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 38 EM2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 14 m 43 sec
Reputation Power: 1
Can I have a form submit to a second page, then have the second page send back a flag

I got a form on page1 that submits its element values to page 2. I want to check these values on page 2 and then set a flag to Y or N. When page 1 reloads, I want to check the flag it receives and display an alert based on it. Possible?

Reply With Quote
  #2  
Old May 8th, 2008, 09:48 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Contributing User
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 1,259 sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level)sync_or_swim User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 23 h 8 m 7 sec
Reputation Power: 796
This seems to be a continuation of this thread:
http://forums.aspfree.com/asp-development-5/how-do-i-escape-the-ampersand-225366.html
maybe a mod can join the two together?

Again - please post your code for us to see, it is hard to help without it. But one way you might be able to achieve this would be to set a session variable on the second page before you redirect back to page 1, you could then check for the value of the session variable.

Reply With Quote
  #3  
Old May 8th, 2008, 02:47 PM
bla4free bla4free is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 143 bla4free User rank is Sergeant (500 - 2000 Reputation Level)bla4free User rank is Sergeant (500 - 2000 Reputation Level)bla4free User rank is Sergeant (500 - 2000 Reputation Level)bla4free User rank is Sergeant (500 - 2000 Reputation Level)bla4free User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 29 m
Reputation Power: 21
I would submit everything on the same page.

Reply With Quote
  #4  
Old May 12th, 2008, 08:41 AM
EM2 EM2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 38 EM2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 14 m 43 sec
Reputation Power: 1
I'll post all related material in this topic. I have a new question:

When passing a variable through the session from the second ASP page back to the first when returning from a form submission, can the session variable be an array?

Reply With Quote
  #5  
Old May 12th, 2008, 08:12 PM
keep_it_simple's Avatar
keep_it_simple keep_it_simple is offline
KIS
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2007
Location: USA
Posts: 1,031 keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level)keep_it_simple User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 8 h 43 m 49 sec
Reputation Power: 340
Send a message via Yahoo to keep_it_simple
Quote:
Originally Posted by EM2
I'll post all related material in this topic. I have a new question:

When passing a variable through the session from the second ASP page back to the first when returning from a form submission, can the session variable be an array?


yes

Code:
Session("Stooges") = Array("Curly","Mo","Larry")

If isArray(Session("Stooges")) Then
 For each stooge in Session("Stooges")
  Response.Write stooge & "<br>"
 Next

 Response.Write "<hr>" & _
                "1." & Session("Stooges")(0) & "<br>" & _
                "2." & Session("Stooges")(1) & "<br>" & _ 
                "3." & Session("Stooges")(2) & "<br>"
              
End If

%>
__________________
Please give respect to those that helped solve an issue by clicking on the reputation icon

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Can I have a form submit to a second page, then have the second page send back a flag


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway