Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Formatting form output


Formatting form output

Reply
  #1 (permalink)  
Old 01-07-05, 10:33 AM
Julio Julio is offline
New Member
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Formatting form output

I am building the following form where all the irrelevant code has been removed:

<form enctype="multipart/form-data; accept-charset=iso-8859-1,UTF-16" name="myform" method="post" action="mailto:someone@somewhere.com?subject=The email subject">

<input type="hidden" name="var_name" value="'";>

<input type="text" name="name_01" . . .
<input type="text" name="name_02" . . .
<input type="text" name="name_03" . . .
. . . . . . . . . . . . . . . . . . . .

<input type="hidden" name="end" value="'">

</form>


For the example we only introduce some data (12345) on the name_02 field.
I have also added a space before and after each ampersand in the following lines for human legibility of this message.

This form produces an attached file which can be saved locally when received with the email client software. The attachment reads as follows:

var_name=%27 & name_01= & name_02=12345 & name_03= & end=%27

And I want it to produce instead the following line where an apostrophe (single quotation mark) is in place of %27.

var_name=' & name_01= & name_02=12345 & name_03= & end='

I have tried several "enctypes" and "accept-charset" on the form header without success.

In other words: I am unable to send quotation marks and I only send %27 (or %22 for the double quotes).

- - -

Remark: The change from quotation marks to %27 is done at the earliest stage by the email client in the sender's computer, not later in the mail server.

- - -

For those concerned with what follows I'll say that the variable var-name will be taken into a JavaScript where I shall be able to extract each value and to do with it whatever I want.

Thanks in advance

Last edited by Julio; 01-07-05 at 10:36 AM. Reason: Checked "instant email notification" on the editing form
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Grouping Digits and Formatting Output silvercover HTML/XHTML/XML 0 09-28-04 05:31 PM
Passing form output more than 1 script iwpg Perl 5 09-07-04 04:46 PM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 08:40 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.