Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems passing URL values from HTML file to CFM file 1

Status
Not open for further replies.

farscp1

Programmer
Sep 18, 2005
33
US
I'm not sure if this is a file issue or if it's just the way I've set up the document.

I want to pass the following:
<a href="forms/emailpage.cfm?course_oneday.html" target="_blank">email to a friend </a>

To a form which supposed to take the course_oneday.html and populate a field as well as ask for friends name and email address.

Here is the code for emailpage.cfm:
<form name="form" method="post" action="process_email.cfm">

<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="top"><strong>Your name:</strong></td>
<td valign="top"><input name="name" type="text" size="50" maxlength="100"></td>
</tr>
<tr>
<td valign="top"><strong>Your email:</strong></td>
<td valign="top"><input name="useremail" type="text" size="50" maxlength="100"></td>
</tr>
<tr>
<td valign="top"><strong>Friend's name:</strong></td>
<td valign="top"><input name="to" type="text" size="50" maxlength="100"></td>
</tr>
<tr>
<td valign="top"><strong>Friend's email address:</strong></td>
<td valign="top"><input name="email" type="text" size="50" maxlength="100"></td>
</tr>
<tr>
<td valign="top"><strong>Subject:</strong></td>
<td valign="top"><input name="subject" type="text" size="50" maxlength="100"></td>
</tr>
<input name="urladdr" type="hidden" value="#ref#"></td>
<tr>
<td colspan="2" align="center" valign="middle"><input type="submit" value="Send Email"></td>
</tr>
</table>
</form>

The values are then passed to a file (sendpage.cfm) that sends the email to the friend.

I am having trouble with the first stage, in that the value after the "?" is not being passed.

Any help would be appreciated.

Anna
 
<a href="forms/emailpage.cfm?course_oneday.html" target="_blank">email to a friend </a>
You're missing the name of the variable.

Code:
<a href="forms/emailpage.cfm?[b][COLOR=red]ref=[/color][/b]course_oneday.html" target="_blank">email to a friend </a>

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
You and lminmei seem to be asking almost the same question with almost the same code… are you;

1. the same person
2. work together
3. in the same class
4. unrelated in anyway and its just a coincidence


We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
4. just coincidence.
It's just that I'm an idiot who keeps thinking this is a different problem when in fact the solutions are quite similar. I just need to focus more. Many thanks for your replies though. I appreciate it. I look foward to testing these later.
Anna
:)
 
Hey, no problem. as long as it wasn't 1 (that's just annoying) or 3 (that's against TT terms) it's all good :)

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
I tried it an still doesn't work. Here is a link to the webpage and you can see for yourself what happens. :-(
 
no link


We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
it doesn't work" isn't very helpful more information would help, errors, actual results etc.

Looking at what you posted earlier however, i'm guessing you need a cfoutput tag around #ref#

<input name="urladdr" type="hidden" value="<cfoutput>#ref#</cfoutput>">

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Yeah!! I finally got it working. I had a cfset in the emailpage.cfm which was changing the value that was being sent. Thanks for your many replies and help.

Anna
:)
 
so my last post was correct?

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top