Script Input Data Editor
Web forms are the main way for CGI scripts to interact with web pages. Script Parameters List helps you to test and debug scripts that work with web forms giving you full control of the script input data.
To access the Script Parameters List, please click Run Þ Run… menu, then click Parameters. Then enter parameter names and values in this format:
name1=value1
name2=value2
For example:

The following example demonstrates now to use the parameters in your script:
#!/usr/bin/perl use CGI qw(param); my $name = param('name'); my $email = param('email'); print "Content-type: text/html\n\n"; print "<html>Hello, $name!</html>\n";
To send the parameters to script when running on the server, use standard HTML forms. Example:
If you want to process forms directly in your script, please enable Link Query String to Script Parameters checkbox for emulating GET request method and/or Link STDIN to Script Parameters for emulating POST request method. Then insert this code in the top of your script (Hint: use Quick Insert to menu for often used code snippets like this one):
After this code is inserted, use variables like $FORM{'field_name'} to access web form fields in your script.
|