Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2005, 03:27 PM   PM User | #1
rfhall50
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rfhall50 is an unknown quantity at this point
Html Variable Substitution

In the working example below there are 2 input boxes. In the real applicaion there are actually 12. The objective is to get the information typed in the input boxes to be included in the body of the email some how, some way. For simplicity, I would really like to keep it confined to just HTML coding.

This is about as simple as I can make it.


<html>
<head>
</head>
<body>
Name: <input type="text" name="T1" size="34">
<br>
Address: <input type="text" name="T2" size="34">
<br>
<A href='mailto:me@myisp.net?subject=MySub&body=Inputted Values'>Click to E-Mail</A>
</body>
</html>

Any help is greatly appreciated.

Bobby
rfhall50 is offline   Reply With Quote
Old 03-07-2005, 03:29 PM   PM User | #2
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
You could possibly do something like this with JavaScript, but not with HTML alone...
chilipie is offline   Reply With Quote
Old 03-07-2005, 03:31 PM   PM User | #3
Xko
New Coder

 
Join Date: Feb 2005
Location: Birmingham, England
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Xko is an unknown quantity at this point
I'd use PHP for that - and as CP stated, HTML will simply not do what you're asking.

HTML is nothing on it's on thesedays.
Xko is offline   Reply With Quote
Old 03-07-2005, 05:31 PM   PM User | #4
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough
Yeah. HTML/CSS is just a markup system, for making info look pretty. it is completly static. It can't do anythingonce the page is loaded. You need to use JS or a server-side (PHP,ASP) technology to proces this

Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Old 03-08-2005, 02:20 AM   PM User | #5
rfhall50
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rfhall50 is an unknown quantity at this point
Smile

Can anyone show me a small example using just 1 field ? Something I could build on. Thanks.

It would be greatly appreciated.

Bobby
rfhall50 is offline   Reply With Quote
Old 03-08-2005, 12:09 PM   PM User | #6
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
[QUOTE=rfhall50] For simplicity, I would really like to keep it confined to just HTML coding.

This is about as simple as I can make it.


I understand simplicity (see my sig ). Though I may not fully understand yet why you try to do it this way.

Have you any reason to avoid an online form? I mean from your text fields, you can send them all to your email in box in whatever configuration you choose. And you could have the benefit of removing your email address from the web to avoid spam bots etc. Oh nearly forgot, if you look on keeping it simple for the longer term, I think you'll find it more simple than settling for easy set-up.

my 2c

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 03-08-2005, 02:49 PM   PM User | #7
rfhall50
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rfhall50 is an unknown quantity at this point
The biggest reason for confining it to HTML is that is what I know how to use at this point. I have no problem using HTML forms (if thats the forms you are talking about), but don't know how to get them out to email other than the old "mailto".

Thanks

Bobby
rfhall50 is offline   Reply With Quote
Old 03-08-2005, 03:09 PM   PM User | #8
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Server side

As stated, the best solution would be a simple form handler built using one of the available server side scripting languages.

This topic was raised recently: see this thread for some more info.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:14 AM.


Advertisement
Log in to turn off these ads.