You are here: Re: Data Entry Repeat Field « All PHP « IT news, forums, messages
Re: Data Entry Repeat Field

Posted by Vince Morgan on 12/21/06 09:35

"Johnny Mac" <johnnyMac@npubcorp.com> wrote in message
news:vMGdnVpk-KPezhfYnZ2dnUVZ_q2pnZ2d@magma.ca...
> 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?
>
Yep, you can certainly can. You could add extra fields after submission, or
you could simply refill the tombstone data, and offer the same two emptied.
In fact the solution we employed used PHP_SELF as a fallback, and it works
very nicely.
Vince Morgan

 

Navigation:

[Reply to this 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

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