EasyCFM.COM ColdFusion Forums / Coding Help! / Simple Contact Form

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Simple Contact Form

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

christinac
11-06-2002 @ 6:57 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 2
Joined: Nov 2002

Help!

I'm new to this but have experience with some
coding. I urgently need to create a simple form with
two fields email & mobile number. That will then
get sent to the hosting server as a excel spread
sheet, or sent to me as an email which ever is
easiest and quickest!

I've had a look at the tutorials but get a bit stuck on
the following:

What do I enter in the DATASOURCE?
How do I set up the excel spread sheet?
What do I need to inform the hosting company to
do? (I know they do support ColdFusion).

I really need your help.

Thanks inadvance

C.




Webmaster
11-06-2002 @ 9:44 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

Hello, and welcome to the EasyCFM.Com forum Smile

The Datasource is the name of your database connection. If you are not storing the information t your database, simply leave out the entire <cfquery></cfquery> tag.

The easiest way will be to email it to yourself, and you achieve that with the <cfmail> tag.

Here's what the <cfmail> tag would look like:

<cfmail from="#form.email#" to="you@yourisp.com" subject="Form Submission!">
Email: #form.email#
Mobile: #form.mobile#
</cfmail>

Of couse that's just an example, but you should get the general idea from it... if you need further help, please let me know...

Thanks,
Pablo Varando
EasyCFM.COM, LLC.

christinac
11-10-2002 @ 5:07 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 2
Joined: Nov 2002

I really need your help!!! I thought I would be able to
solve this but it's taking me far to long, I'm not
interested in programming, it's just that I thought I
would be able to help out.

I would need someone's help to provide me with
the cfm programming and tell me what I need to
instruct my hosting company. I can provide the html
page.

All I would need to have is 2 form fields, email, tel
which will be sent to an email address.

Is there anyone who could help me out PLEASE?

Thanks

Christina




webedge
11-17-2002 @ 1:31 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 238
Joined: Nov 2002

Er the answer that Pablo gave above will do it.  Just save the code above into a page with the extension .cfm

As long as your host supports CF then it will do the job!

Phil

No matter how much you polish a turd, it's still a turd...

WebmasterEdge.com - Online resources for Webmasters


Website Designed and Developed by Pablo Varando.