Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call cgi script from html

Status
Not open for further replies.

tamdoan

MIS
Jun 23, 2005
1
US
I have a simple Html script (20 lines). Please take a look.
vendor_info.cgi (line 07) is a simple perl script to display vendor name and address

I have a question:
What I have to do to for the setup to make it recognize my UNIX server.

Thanks

===========================================================

01) <HTML>
02) <HEAD>
03) <TITLE>Vendor Information</TITLE>
04) </HEAD>
05)
05) <BODY>
07) <FORM ACTION=" METHOD=POST>
08) Which software do you prefer?
09)
10) <SELECT NAME="software">
11) <OPTION VALUE=qsel>qsel
12) <OPTION VALUE=syncsort>syncsort
13) <OPTION VALUE=tuxedo>tuxedo
14) <OPTION VALUE=dazel>dazel
15) </SELECT>
16)
17) <INPUT TYPE="submit" VALUE="Vendor Inquiry">
18) </FORM>
19) </BODY>
20) </HTML>
 
you don't have a form name - i think this might stop it working


Kind Regards
Duncan
 
Code:
<option value="whatever">Text[b]</option>[/b]

You're server should be localhost, unless you're running the script off a different machine, if your machine isn't abc123:99999, change thsi bit to your server name

--Paul

Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Missing a form name (which is optional anyway) or even an [tt]</option>[/tt] tag (also optional HTML) should not stop your form from working.

What actually happens when you submit that form? Do you get an error message of some sort?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
going to port 99999 on host abc123 is unlikely to return a value, unless you have abc123 set up on your local DNS, or in your hosts file

On the optional tags thing. I know they're optional, but they SHOULD be put in, as it's one less thing to worry about, especially when someone is asking for help, when using well formed X/HTML it's one less thing to investigate.

Taking shortcuts on HTML may indicate a propensity to take shortcuts elsewhere, I know this, because I used to do it myself - misguidedly thinking that the omission of a few extra characters would dramatically improve my application's speed - it doesn't, but I was younger then ;-)

Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
I totally agree - it's good practice to put those closing tags in. I wouldn't dream of leaving them out, or recommending anybody to do so. A name for a form is only really needed if you want to address it from Javascript (you should probably use an [tt]id[/tt] instead these days anyway). Nonetheless, both are optional so neither is likely to be the cause of tamdoan's problem (whatever it is). My guess is that he hasn't configured that directory on his server to execute scripts, but the that's also making a guess as what his question really means.

tamdoan, if you're out there, we can't really help you without more information. Does this page have a URL we could see for ourselves?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top