ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion 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 Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2005, 11:26 PM
Digimonkey Digimonkey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 13 Digimonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 27 m 49 sec
Reputation Power: 0
Unhappy Post Form data from a .cfm page to an .asp page? Possible????

Here's my situation. Original website done in .cfm, I'm redoing the site for a friend and I don't know .cfm. Site being redone in .asp. My problem comes from the sign-up page where users begin my login in with their email address via a form. This is then posted to a page which checks it against the database. So far so good. I was able to tranfer most of the pages into .asp with the form data posting into the .cfm page. However, to continue signing up for the site, the next page is supposed to show (in a hidden form field) the email address the user entered from the previous page. It's not doing this, and I can't figure out how to do it. So my question is: Can form data post to a .cfm page be transfer/passed into a .asp page. Here are the following codes:

Original Email Login Form: (in an .asp page)

<form method="POST" action="JoinAuthAction1-dtemp.cfm" onSubmit="return isEmail(this.AccountName)">

<p><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Please enter an account name</font></b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">&nbsp;

<input type="text" name="AccountName" size="20">
<br>
<font color="#008000">(the account name must be a valid email address)</font></font>
</p>
<div align="center">
<input type="submit" value="Submit">
</div>
</form>


This form posts to the JoinAuthAction.....cfm page:

<html>
<head>
<title>(Join) Look for Account</title>
</head>
<body>
<cfquery name="LookForAccount" datasource="#application.DSN#">
select *
from Members
where MemberEmail = '#form.AccountName#'
</cfquery>
<cfif #LookForAccount.RecordCount# IS 0> <!--- ok to add account --->
<cflocation url="content_joinus2.asp?an=#form.AccountName#" addtoken="No">
<cfelse> <!--- account already exists --->
<cflocation url="content_joinus.asp?Found=1" addtoken="No">
</cfif>

</body>
</html>


And this is the area of the form that I'm trying to pass the "email address" informtion to: (in an .asp page)

<cfoutput><input type="hidden" name="AName" value=#url.an#></cfoutput>
<cfoutput>#url.an#</cfoutput>


Obviously, the "cf" shouldn't be there, but I've tried many diffent way of making it work, and so far, I batting 1.000 in the failure area. Please help, any suggestion would be a step in the right direction at this point. Thanks.

D.

Reply With Quote
  #2  
Old February 10th, 2005, 08:10 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 29 m 20 sec
Reputation Power: 53
I'm not clear what the actual problem is. If you're on an asp page (or a php or jsp page), and you have a form there, and the target of the form is a .cfm page, then any form fields that are posted would be posted to the .cfm page...CF doesn't care what technology generated the originating page. Remember that when the user submits the form, they are submitting an HTML page, because the ASP server generated an HTML document and sent it to their browser. CF could not care less what generated that HTML from that the user submits.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Post Form data from a .cfm page to an .asp page? Possible????


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