Jump to content

passing variables


dodgei

Recommended Posts

help, I'm passing variables from one page to another php page. The error I get is this

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

The page that is receiveing the data is written in html with php scripts.
Should I write in php and echo the html code?

Link to comment
Share on other sites

You need to make sure you have the correct content-type.

Normally this means outputting something like:

[code]<?php
// Output content type for the page
header('Content-type: text/html');
?>[/code]

But without seeing any code we're not really in a position to help  :o

Regards
Huggie
Link to comment
Share on other sites

The page generating the variables has the following code

[code]echo "<td><a href=http://www.merediencapital.com/payment.php?action=
pay&row_id=" . $r['EntryID']."&merchant=". $r['Merchant']."&duedate=".$r['DueDate']."&amount=".$r['Amount'].">Payment</a></td>";[/code]


Then payment.php has this code(I'm displaying only the first part of the code, the rest is just more html code)

[code]<h3>Invoice Info<br /></h3>
<?php
if(isset($_GET['action']) && $_GET['action'] == "pay") {
$id=$_GET['row_id'];
$duedate=$_GET['DueDate'];
$merchant=$_GET['Merchant'];
$amount=$_GET['Amount'];

echo "Merchant:".$merchant."<br />";
echo "Due Date:".$duedate."<br />";
echo "Amount:".$amount."<br />";
}
?>



<h3>Make Payment</h3>
<form name="acct"action="payprocess.php" method="post">
<table border="0" cellspacing="0">
<tr><td>
Payment Date: <select name="paydatemo"><option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.