Order API

This is an archive of old posting to the User Forum

Order API

Postby Jason Jones » Wed Apr 09, 2003 2:27 pm

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
Jason Jones
 

Re: Order API

Postby Rob » Wed Apr 09, 2003 4:55 pm

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
Rob
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 68 guests