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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formmail? 1

Status
Not open for further replies.

juandiegomc

Programmer
Apr 25, 2003
60
US
Hello,

I want to put in twenty english words and then in a new
text box the persons can translate one, many or all of

the words in a text box along side each word. and then

they could click submit and send them to me by email.

Any help on that code.

juandiegomcc@afirmacion.com
 
It sounds like you have it all figured out:

put 20 words on a page with 20 <input... tags across from them. name them word1,word2,word3...

put <input type=&quot;hidden&quot;... for the english words name Eng1,Eng2,Eng3... that way you can keep straight which ones have been translated and which ones haven't.

use:

<form method=&quot;post&quot; action=&quot;mailto:me@myemail.bigu.edu&quot; enctype=&quot;text/plain&quot; >

for the form tag... which by the way pops up an ugly security message on most people computers. Most people wont go through with it. You would be better off using some kind of server side script like CFM, ASP, or PHP to create the Email. This would also allow you to format the Email to look better and make more sense.

In Fact... if you are going to use the <form action=&quot;mailto...&quot; method you would be better off nameing the form variables after the English words, that way the email would look like:

Cat=Gato
Duck=Pato
and so on...

Anyway... that should get you started. Let us know if you have any trouble along the way.




Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Thanks Travis,

I find a strange thing. When I put many words in the list

the top words go way down and one has to arrow down a quite

a bit to get to the true list. I would like to have the list just below the header notes.

juandiegomcc@afirmacion.com


 
hehe...
OK.
I don't know where the header notes are, but you can change the appearance of a list by changing the style:
like so,
Code:
<select name=&quot;words&quot; style=&quot;width:200px;height:200px&quot;>
<option...
</select>

for more details about how to change the appearance read about CSS styles.

Personally I don't think I would use a list box... But then I don't know what your page looks like.

I would use a bunch of regular text inputs accross from there corresponding English words. But that is just me. If you want more help with the layout, post some code, or a link, or something. I'm not really sure what the problem is.

:)


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Travis,

I owe you a big star.... but can you explain to me if I can do two or three paragraphs and have someone type in a type of memo field like this very Message field on tek-tips.

that way they can translate these english paragrapsh, into
the message text field and then click on submit and off it goes to my email address. I will get that star off to you too. many thanks.

juandiegomcc@afirmacion.com
 
Sure you can use a memo field it's called textarea.

like this:
Code:
<textarea name=&quot;Whatever&quot; style=&quot;height:100px;width:200px&quot;>
default text
</textarea>

if you don't put anything between the start and end tags the memo will start out empty.

I hope it goes well. Translation is always a hard process.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Travis,

I just click a big star for you. Thank you for

the tip and it works super.

juandiegomcc@afirmacion.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top