dodgei Posted January 30, 2007 Share Posted January 30, 2007 help, I'm passing variables from one page to another php page. The error I get is thisCGI ErrorThe 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 More sharing options...
HuggieBear Posted January 30, 2007 Share Posted January 30, 2007 You need to make sure you have the correct content-type.Normally this means outputting something like:[code]<?php// Output content type for the pageheader('Content-type: text/html');?>[/code]But without seeing any code we're not really in a position to help :oRegardsHuggie Link to comment https://forums.phpfreaks.com/topic/36257-passing-variables/#findComment-172384 Share on other sites More sharing options...
dodgei Posted January 30, 2007 Author Share Posted January 30, 2007 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 More sharing options...
HuggieBear Posted January 30, 2007 Share Posted January 30, 2007 Odd, that all looks OK.It may need the header type if it's being used as a cgi app which is possible.You could try adding the code i supplied to the very top of the page.RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/36257-passing-variables/#findComment-172399 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.