Reply to Re: Data Entry Repeat Field

Your name:

Reply:


Posted by Johnny Mac on 12/21/06 09:26

Hi Vince

Thanks for the info. I'm new to PHP. I can create forms but this one is
tricky. I know nothing about javascript ( ! ).

I was thinking about creating a function which would display the text entry
field using a for loop with the initial count n=0. If a field would have
data entered into it, I'd test with isset(), then I would call the function
again, adding to n which in theory would add another line for text entry.

Of course there would be the problem of the data array, but in this case, do
you think the above idea might me possible using a $_SERVER['PHP_SELF'];
method?




"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:458a418e$0$5749$afc38c87@news.optusnet.com.au...
> "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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация