HighDots Forums  

howto: combining form output from one of more fields to a single line

alt.html.tags alt.html.tags


Discuss howto: combining form output from one of more fields to a single line in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ikkeboeken
 
Posts: n/a

Default howto: combining form output from one of more fields to a single line - 02-07-2004 , 04:39 AM






am using a simple form where clients need to imput a date of birth and a
date a gift is given.

the output is sent using a mailto post form with encrypt/text, etc... all of
the eventual output is eventually printed to a personalized product. the
problem is that i cannot get customers to fill in the correct wysiwyg data
in a text field used for these dates, and i subsequently have to take too
much time to correct their input.

<form action="mailto:xxx (AT) xxx (DOT) xx?subject=book" method="post"
enctype="text/plain">
blah...blah...blah...
<select...
<option...
</select...
blah...blah...blah...
</form>

i have created sets of form list/menus, one for the day, one for the month
and one for the year, and what i end up receiving, for example, is:

Date In Book=7
Date In Book=June
Date In Book=2004
Birth Date=20
Birth Date=August
Birth Date=1999

is there a way using just html, or even a little simple java, to get to
combine this into a single output, using each of the three selections and
their options, and combining them at submission???

what i want to receive is:

Date In Book=7 June 2004
Birth Date=20 August 1999




Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-07-2004 , 05:26 AM






"Ikkeboeken" <ikkeboeken (AT) hotmail (DOT) com> wrote:

Quote:
form action="mailto:xxx (AT) xxx (DOT) xx?subject=book" method="post"
enctype="text/plain"
Anything that results from that is implementation-dependent - the
construct is _guaranteed_ to cause huge amounts of lost form
submissions. When it happens to cause something to appear in someone's
mailbox, it is guaranteed to be in a rather messy format.

Please learn the basics of forms:
http://www.cs.tut.fi/~jkorpela/forms/

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #3  
Old   
Ikkeboeken
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-07-2004 , 09:11 PM



i appreciate your refeence to the use of the mailto: code. however, it's a
'better than a kick to the head' temporary solution to not having any server
to host any other for the short term. but regarding the question. is it
possible to concatenate the result of the three lists to one?
--------------------
i have created sets of form list/menus, one for the day, one for the month
and one for the year, and what i end up receiving, for example, is:

Date In Book=7
Date In Book=June
Date In Book=2004
Birth Date=20
Birth Date=August
Birth Date=1999

is there a way using just html, or even a little simple java, to get to
combine this into a single output, using each of the three selections and
their options, and combining them at submission???

what i want to receive is:

Date In Book=7 June 2004
Birth Date=20 August 1999
--------------------

cheers,
KÅTMÅ

btw. i've added your site to my favorites. it is very well thought out and
full of useful resources. it will save me many many hours of searches.


"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote

Quote:
"Ikkeboeken" <ikkeboeken (AT) hotmail (DOT) com> wrote:

form action="mailto:xxx (AT) xxx (DOT) xx?subject=book" method="post"
enctype="text/plain"

Anything that results from that is implementation-dependent - the
construct is _guaranteed_ to cause huge amounts of lost form
submissions. When it happens to cause something to appear in someone's
mailbox, it is guaranteed to be in a rather messy format.

Please learn the basics of forms:
http://www.cs.tut.fi/~jkorpela/forms/

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html





Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-08-2004 , 03:57 AM



Ikkeboeken wrote:

http://www.allmyfaqs.com/faq.pl?How_to_post

Quote:
i appreciate your refeence to the use of the mailto: code. however, it's a
'better than a kick to the head' temporary solution to not having any
server to host any other for the short term. but regarding the question.
is it possible to concatenate the result of the three lists to one?
Easily - just do it in the server side script you aren't using.

$combo = $list1 . $list2 . $list3;

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #5  
Old   
Ikkeboeken
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-08-2004 , 08:27 AM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
Ikkeboeken wrote:

http://www.allmyfaqs.com/faq.pl?How_to_post

i appreciate your refeence to the use of the mailto: code. however, it's
a
'better than a kick to the head' temporary solution to not having any
server to host any other for the short term. but regarding the question.
is it possible to concatenate the result of the three lists to one?

Easily - just do it in the server side script you aren't using.

$combo = $list1 . $list2 . $list3;

--
David Dorward <http://dorward.me.uk/
but not possible using the html, or some little bit of java?




Reply With Quote
  #6  
Old   
David Dorward
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-08-2004 , 08:56 AM



Ikkeboeken wrote:
Quote:
Easily - just do it in the server side script you aren't using.

but not possible using the html, or some little bit of java?
With HTML - no.
With Java? Easily ... if you are using JSP to process your form.

I expect you mean JavaScript though, and while I think it might be possible,
its reduces the reliability of your form even further.

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #7  
Old   
Ikkeboeken
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-08-2004 , 12:44 PM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
Ikkeboeken wrote:
Easily - just do it in the server side script you aren't using.

but not possible using the html, or some little bit of java?

With HTML - no.
With Java? Easily ... if you are using JSP to process your form.

I expect you mean JavaScript though, and while I think it might be
possible,
its reduces the reliability of your form even further.

--
David Dorward <http://dorward.me.uk/
jep... java 'script' for now. something more server sided later. i realize
it will not be the best solution. could you perhaps steer me, however, to a
script or site where i might find something to use as a temporary tool?




Reply With Quote
  #8  
Old   
Ikkeboeken
 
Posts: n/a

Default Re: howto: combining form output from one of more fields to a single line - 02-11-2004 , 09:47 PM




"Ikkeboeken" <ikkeboeken (AT) hotmail (DOT) com> wrote

Quote:
"David Dorward" <dorward (AT) yahoo (DOT) com> wrote in message
news:c05ios$hfh$1$8302bc10 (AT) news (DOT) demon.co.uk...
Ikkeboeken wrote:
Easily - just do it in the server side script you aren't using.

but not possible using the html, or some little bit of java?

With HTML - no.
With Java? Easily ... if you are using JSP to process your form.

I expect you mean JavaScript though, and while I think it might be
possible,
its reduces the reliability of your form even further.

--
David Dorward <http://dorward.me.uk/

jep... java 'script' for now. something more server sided later. i realize
it will not be the best solution. could you perhaps steer me, however, to
a
script or site where i might find something to use as a temporary tool?


anybody???




Reply With Quote
Reply




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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.