/    Sign up×
Community /Pin to ProfileBookmark

html code with a pulldown menu

Hi: I am trying to create a perl/cgi script that will create a html code with a pulldown menu. The perl script creates a html code with an area for the end user to type in a string and hit the submit button. I want to change the script such that it changes the html code to have a pull down menu with 5 variables that the user can select. Could somebody provide me some help as how the html code should look like?

====HTML CODE===============
<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML//EN”>
<HTML><BODY><body aLink=#ffffff bgColor=#000033 link=#ffffff text=#ffffff vLink=#cccccc>

<td>AlertKey:</td>
<td><input type=text name=f_alertkey value=””></td>
</tr>
</table>
<p>
<input type=submit value=”Submit”>
</form>

</BODY></HTML>
============================

The script I am using to create the above html code

=====CGO script=================
my $alertkey = param( ‘$selected_rows.AlertKey’ ) || “0”;
print “<form action=”/cgi-bin/create_ticket.cgi” method=”get”>n”;
print “<table>n”;
print “<tr>n”;
print “<td>AlertKey:</td>n”;
print “<td><input type=text name=f_alertkey value=”$alertkey”></td>n”;

print “</tr>n”;
=======================

Thanks
Ray

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @rsmith967 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...