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
https://forums.phpfreaks.com/topic/36257-passing-variables/
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
https://forums.phpfreaks.com/topic/36257-passing-variables/#findComment-172384
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
https://forums.phpfreaks.com/topic/36257-passing-variables/#findComment-172398
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.