Do you mean you want them to be able to say how long a text field should be?
If so, try this:
for ($i=0; $i < $fields; $i++)
{
$fieldName = "field$i";
echo "<tr><td><input type=text name=\"$fieldName\"
value=\"${$fieldName}\" size=\"$size\">\n";
}
$size would be a form parameter that you allow the user to set along with
the field name and value.
Josh Hoover
KnowledgeStorm, Inc.
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here
> I am trying to build a dynamic form, and I am using the code
> below to let
> the user ,name the fields that are generated,but i want to
> give the user the
> option of changing the field size but I cant get it to work.
- [PHP] Converting String to Vari... Randy Johnson
- Re: [PHP] Converting String... Ernest E Vogelsinger
- RE: [PHP] Converting String... Randy Johnson
- RE: [PHP] Converting String... John Meyer
- [PHP] Page not found error Randy Johnson
- Re: [PHP] Page not found er... Lewis Bergman
- Re: [PHP] Converting String... Chris Adams
- Re: [PHP] passing variables Terry Romine
- Re: [PHP] passing variables Michael Hall
- [PHP] passing variables george
- [PHP] passing variables Hoover, Josh
- [PHP] passing variables Adam
- RE: [PHP] passing variables PHPBeginner.com
- [PHP] Passing variables Tarrant Costelloe
- Re: [PHP] Passing variables Mirek Novak
- Re: [PHP] Passing variables Peter Dudley
- [PHP] Passing Variables Steve Osborne
- Re: [PHP] Passing Variables jimtronic
- Re: [PHP] Passing Variables-SOLVED Steve Osborne
- [PHP] Passing Variables Artie Ball
- Re: [PHP] Passing Variables Erik Price

