HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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:
  #1  
Old March 4th, 2004, 08:02 PM
keith_foo keith_foo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 13 keith_foo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to retrieve form values in ColdFusion

I have an asp page, and it is supposed to pass 2 fields over to the next page for processing. Supposedly, if the next page is a HTML page, how do I retrieve the 2 hidden fields passed over?

<form name="form" Action="dloginaction.cfm" METHOD="POST">
<input type='hidden' name='Userid' value='<%=userID%>'>
<input type='hidden' name='Password' value='<%=password%>'>
</form>

Over at the next page, I intend to retrieve the fields in HTML codes, before assigning them to the cfm codes, if that's even possible.

Does anyone have a similar problem? Any help would be greatly appreciated.

Thanks in advance.

Keith

Last edited by keith_foo : March 8th, 2004 at 07:44 PM.

Reply With Quote
  #2  
Old March 4th, 2004, 09:57 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,760 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 5 h 22 m 16 sec
Reputation Power: 443
you can't request variables from an html page. it has to be a .asp page.

Reply With Quote
  #3  
Old March 8th, 2004, 01:56 AM
keith_foo keith_foo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 13 keith_foo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you for your reply Memnoch.

Sorry, my mistake. HTML can't work.

I was actually trying to achieve this:
=============================================
getUser.asp

<form name="form" Action="dloginaction.cfm" METHOD="POST" id="form">
<input type='hidden' name='Userid' value='<%=userID%>'>
<input type='hidden' name='Password' value='<%=password%>'>
</form>

<Script Language=Javascript>
this.form.submit();
</Script>
=============================================
over at the dloginaction.cfm page...
<cfset userid=Form.Userid>
<cfset password=Form.Password>

I can't seem to be retrieving the values correctly.

Is it wrong to do it this way?

Keith

Reply With Quote
  #4  
Old March 9th, 2004, 06:45 AM
RossC0 RossC0 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 15 RossC0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

Is the original page ASP and the posted page cfm ?

The CFM code looks ok - try doing outputting the form values before you post the page to make sure they are ok and as anticipated.

I've never mixed the two coding types so I'm not sure if form variables will carry over to the cf server. If this is the case then you might want to divert to a coldfusion page before doing any security checks.

Reply With Quote
  #5  
Old March 10th, 2004, 07:56 PM
keith_foo keith_foo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 13 keith_foo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually, back at the ASP page everything works fine.
But over at the CFM page, it works only on certain PCs.

When I tested the thing at certain computers, I get the error "Session.userID" is undefined.

I'm puzzled as to why it only works on certain computers...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > How to retrieve form values in HTML?


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 5 hosted by Hostway