» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2006, 01:56 PM
kingfisher kingfisher is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kingfisher is on a distinguished road
Default assigning a session variable....

help me out
I have a products page which populate products dynamically with checkboxes. when the form is submitted, I check for selected boxes using the split(). My problem is, products page submits the form to client.asp, and within that page is client info. then the client page is submitted to confirmOrders.asp, which will display client info, and products selected. the split() works fine within the client.asp page. I'm trying to assign the checkboxs to a Session variable and use it on confirmOrder.asp. Then display the session variable on confirmOrders.asp page. I know I can do everything in one shot with confirmOrders.asp, but the client wants to display the client.asp page then the latter.

I have tried my best to explain my problem, hope you understand
<client.asp>
Session("myarray") = Request.Form("chkproduct")

<orderConfirm.asp>
strP = Session("myarray")
p_Array = Split(st -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 06-23-2006, 01:59 PM
cox cox is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cox is on a distinguished road
Default

you can use hidden form elements instead:
--clients.asp

Code:
For x=1 To Request.Form("chkproduct").Count
Response.Write("<input type=""hidden"" name=""chkproduct"" value=""" & Request.Form("chkproduct").Item(x) & """ />")
Next
then, in the next page read this exactly like you read it in client.asp file.
bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
session variable overwriting euhoria PHP Programming and Tips 2 08-22-2006 01:01 PM
clear session variable vandort ASP forums and Tips 1 08-11-2006 01:48 PM
Security Safe PHP Session Setup waugh PHP Programming and Tips 2 08-03-2006 05:03 PM
New session not generated furious PHP Programming and Tips 1 08-01-2006 04:51 PM
stop indexing PHP SESSION IDs danielle Yahoo 4 03-26-2006 05:34 AM


All times are GMT. The time now is 07:49 AM.