srikrishnan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I am creating a HTML form using cgi perl
In this, I am trying to add new field by checking the previous field value, new field only display if the value of the previous field matches
I am trying something like below,
print '<tr><td>Position:</td><td><select name="hdtextstyle" onchange=" +ifrunon">'; print '<option value="newline">New Line</option>'; print '<option value="runon">Runon</option>'; print '</select>'; print '</td></tr>'; my $textstyle = param('hdtextstyle'); if (param(hdtextstyle) eq "Runon") { print '<tr><td>$textstyle</td></tr>'; }
please help me to solve this
Thanks in advance
srikrishnan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: In HTML form adding new field
by marto (Cardinal) on May 10, 2012 at 06:45 UTC | |
|
Re: In HTML form adding new field
by Anonymous Monk on May 10, 2012 at 06:57 UTC | |
|
Re: In HTML form adding new field
by mendeepak (Scribe) on May 14, 2012 at 04:40 UTC |