CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Win32 Programming Help:



Jul 30, 2001, 9:46 AM

Post #1 of 2 (6786 views)
varo Can't Post

I have the following problem:

I whant to execute in my cgi (.pl) a procedure that will generate a HTML page. This HTML page contains a perlscript. When I call the subroutine, the HTML page is generated, but the perlscript will not work.

Besides the routine that the perlscript in the HTML page has to do, it should not be visible in the HTML code when viewing the source.

My question is how do execute properly this perlscript in my cgi and if posible, how to use it without generating the HTML page.

My goal is to use session variables to send information to another page in another server without using the get or post methods.

It's sensible data so I need to work on a script that allows me to procees the information that is sent to me and then, send it to another server (remote server, not in my installations).

thanks for your time,

Here is my code:

sub denied{
#Subroutine that will generate a HTML page with a perlscipt
print << "[END]";
<% @LANGUAGE = PerlScript %>
<title>Your Credit Card was Denied</title>

<link rel="stylesheet" href="../estilo.css" type="text/css">

<script language="JavaScript">

function goHist(a)


<body bgcolor="#ffffff">

<div align="center">

<table class="mainbox" border="0" width="600" cellpadding="0" cellspacing="1">

<td width="450" nowrap>
<span class="header">Your Information was not Submitted</span>
<td width="150" nowrap>
<img src="../../../seals/comercardseal.gif" width="150" height="30" border="0" alt="Authorized Merchant" align="top">

<td class="cellbox" align="center" colspan="2">



Your credit card was denied or declined

You can go back to verify the information and resubmit.

<form method="post">
<input type="button" value="GO BACK" onClick="goHist(-1)">
If the problem persists, please click on the continue button.



session->{"phone"} = $phone
session->{"email"} = $email
session->{"fname"} = $fname
session->{"lname"} = $lname
session->{"address1"} = $address1
session->{"address2"} = $address2
session->{"country"} = $country
session->{"city"} = $city
session->{"state"} = $state
session->{"zip"} = $zip
session->{"casino"} = $name_cas
session->{"playerid"} = $player
session->{"pass"} = $pass
session->{"amount"} = $amount
session->{"response_code"} = $code_name
session->{"num_autoriza"} = $response_aut
session->{"operation"} = $com_internal

<form action="$url" method="post">
<input name="cmdSubmit" type="submit" value="CONTINUE">

You will be sent back to the Casino and SportsBook Secure Site.

When prompted, you may add our site certificate to your browser.







Aug 1, 2001, 12:04 PM

Post #2 of 2 (6777 views)
Re: varo [In reply to] Can't Post


Well, I think a couple of questions are in order.

Is your output passed to an ASP Parsing server for processing?

If the answer to this is no, then PerlScript will not work.

Is this running right out of the cgi-bin?

If the answer to this is yes, then PerlScript will not work.

PerlScript is meant to be used in lieu of the VBScript commonly used for active server pages.

What I think you need to do is create the page with a .asp extension and run it on an IIS server or a unix box running the ChiliSoft Active Server Page Server (not sure if it is a full blown server or just an add in to a server. Always ran my ASP through IIS). The page should contain everything in your print statement and the action tag of the preceding form should be the name of this new .asp file.

HTH, Dennis

$a="c323745335d3221214b364d545a362532582521254c3640504c37292f493759214b3635554c3040606a0",print unpack"u*",pack "h*",$a,"\n\n"


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives