Page 1 of 1

Order API

PostPosted: Wed Apr 09, 2003 2:27 pm
by Jason Jones
Forgive me, I'm new to CGI. Suppose I wanted to just print a customer's
name. What code would do that for me?

Thanks in advance,

Jason Jones

Re: Order API

PostPosted: Wed Apr 09, 2003 4:55 pm
by Rob
Forgive me, I'm new to CGI. Suppose I wanted to just print a customer's
name. What code would do that for me?

If you're using Perl:
---
#!/usr/bin/perl

# Use CGI module to obtain data from ShopSite
use CGI;

# Initialize $query variable to contain all data
$query = new CGI;

# Print header for an HTML page
print "Content-type: text/html\n\n";

print "<HTML><BODY>Customer Name: $query->param('Name')";
print "</BODY></HTML>";

exit;
---

HTH

Rob