|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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"> <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. |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Post Form data from a .cfm page to an .asp page? Possible???? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|