|
Posted by Vince Morgan on 12/21/06 08:11
"Johnny Mac" <johnnyMac@npubcorp.com> wrote in message
news:OaCdnU4sS57sphfYnZ2dnUVZ_s-rnZ2d@magma.ca...
> I am trying to make a form that when a user enters data, there will always
> be one extra line in case the user wants to enter more. Any hints on how
to
> create this?
>
> In addition to the tombstone data which should be entered only once, the
> user has two fields to fill in per line. Once the user has filled in as
> many lines as necessary, the user sends the data via mailto().
>
> help...?
>
>
Recently I had to find a solution to something very similar. The user was
to fill in some personal info, name etc. which of course doesn't change,
then two inputs for "product code" and "description". The form is a request
for certificates, and the user may need any number of them.
It was decided we would go with the javascript "xmlHTTPreq" object. That
way the user only had to enter the unchanging info once, but the last two
fields can be refilled (they are cleared on each submision) and submitted
repeatedly without the page having to reload.
It requires JavaScript, which most other solutions also required, and the
"xmlHTTPreq" object, which in various flavours is widely supported also.
If JavaScript, or the xmlHTTPreq object are not working on the client it
falls back to a "self" php post which is almost unnoticable.
HTH
Vince Morgan
Navigation:
[Reply to this message]
|