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

textarea problem with vbscript

Status
Not open for further replies.

taz97

Programmer
Jun 7, 2001
17
CA
Sorry for my english, i'm french canadian.
Hi, this is my problem. First, I have a html file with form. In this form, I have some <input> and <textarea>. See below. After that, all information are submit to asp file. In the asp file, I want to subit all information but, with the name and the textarea, only the first word are submit. Example: if the name is &quot;Joe Sakik&quot; in the email, I only have Joe. Same thing for the message. See below for the code (partially) of the asp file.
Thanks for your help

HTML FILE
...
...
<td width=145>Name:</td>
<td width=228><input type=&quot;text&quot; name=&quot;name&quot; size=30 maxlength=30 ></td>
...
<td width=145>Commentaire/Modification</td>
<td width=228><textarea name=&quot;message&quot; cols=30 rows=4></textarea></td>
<td></td>
...
END HTML FILE


ASP FILE
...
<FORM...
...
response.write &quot;<input type=&quot;&quot;hidden&quot;&quot; name=&quot;&quot;Nom&quot;&quot; size=&quot;&quot;30&quot;&quot; maxlength=&quot;&quot;30&quot;&quot; value=&quot; & nom & &quot;>&quot;
...
response.write &quot;<input type=&quot;&quot;hidden&quot;&quot; name=&quot;&quot;Message&quot;&quot; value=&quot; & message & &quot;>&quot;
...
</FORM>
 
How are you reading in your values to assign to the variables that you are then assigning to the hidden form elements?

This problem stems from missing &quot;'s --

The issue is that as soon as the HTML encounters a space that is not enclosed within a set of quotation marks, it stops looking at it, and goes on to the next tag it finds. Start looking at your source code of the HTML pages, and the problem should become apparent.

good luck! :)
Paul Prewett
penny.gif
penny.gif
 
Sorry, I don't understand, can you, please give me a example ???
Thanks you very much

A new web developer
 
Sorry, in the asp file, when I execute this line:

response.write &quot;<br>Commande de :&quot; & Name
response.write &quot;<br>Message: &quot; & message & &quot;<br>&quot;

the ouptut is OK. On screen, I see:

Commande de : Steve roy
Message: Hi how you doing


But, in my email, I have:

Commande de : Steve
Message: Hi

Need Help !
Thanks !





 
Do this, and follow the example for the other:

response.write &quot;<input type=&quot;&quot;hidden&quot;&quot; name=&quot;&quot;Nom&quot;&quot; size=&quot;&quot;30&quot;&quot; maxlength=&quot;&quot;30&quot;&quot; value=&quot;&quot;&quot; & nom & &quot;&quot;&quot;>&quot;

Note the two extra &quot; I put in there for the value attribute. That will output one set of &quot; to your HTML source, and thereby pass the value along as you expect it to.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top