Payment option page is not fully rendered

Aug 26, 2008 at 5:21 AM
I am having a problem with the payment option page not producing all the code for a full HTML page.

Here is what I have as my page 

Benefits of Membership

  • No Ads -No more annoying ads to get in your way
  • Faster loading pages - Pages load faster when there aren't any ads
  • Printer friendly pages - print pages without ads, and with a nice layout.
  • Images in printed pages - images don't show up in printed pages unless you are a member.
  • larger images - When you click on an image you can see images up to 1280 x 1024.

30 day subscription - $5
[paybutton]30 day subscription|1001|5.00||30|[/paybutton]

180 day subscription - $25
[paybutton]180 day subscription|1001|30.00||180|[/paybutton]

365 day subscription - $60
[paybutton]365 day subscription|1001|60.00||365|[/paybutton]

And this is the HTML is produces. As you can see there is no </html> so the page that is shown is really long, it also does not use my sites design.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JusTech&#8217;n &rsaquo; Dashboard &#8212; WordPress</title>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func) {if (typeof jQuery != "undefined") jQuery(document).ready(func); else if (typeof wpOnload!='function'){wpOnload=func;} else {var oldonload=wpOnload; wpOnload=function(){oldonload();func();}}};
//]]>
</script>
<style type="text/css">* html { overflow-x: hidden; }</style>
<link rel='stylesheet' href='http://wordpresstest.justechn.com/wp-admin/css/dashboard.css?ver=2.6' type='text/css' media='all' />


<link rel='stylesheet' href='http://wordpresstest.justechn.com/wp-admin/css/global.css?ver=2.6' type='text/css' media='all' />


<link rel='stylesheet' href='http://wordpresstest.justechn.com/wp-admin/wp-admin.css?ver=2.6' type='text/css' media='all' />


<link rel='stylesheet' href='http://wordpresstest.justechn.com/wp-admin/css/colors-fresh.css?ver=2.6' type='text/css' media='all' />


<!--[if gte IE 6]>
<link rel='stylesheet' href='http://wordpresstest.justechn.com/wp-admin/css/ie.css?ver=2.6' type='text/css' media='all' />


<![endif]-->
<script type='text/javascript' src='http://wordpresstest.justechn.com/wp-includes/js/jquery/jquery.js?ver=1.2.6'></script>
</SCRIPT>
</SCRIPT> <script type='text/javascript' src='http://wordpresstest.justechn.com/wp-admin/js/common.js?ver=20080318'></script>
</SCRIPT>
</SCRIPT> <script type='text/javascript' src='http://wordpresstest.justechn.com/wp-includes/js/jquery/jquery.color.js?ver=2.0-4561'></script>
</SCRIPT>
</SCRIPT> <script type='text/javascript'>
/* <![CDATA[ */
 wpGearsL10n = {
  updateCompleted: "Update completed.",
  error: "Error:"
 }
/* ]]> */
</script>
<script type='text/javascript' src='http://wordpresstest.justechn.com/wp-admin/js/wp-gears.js?ver=20080511'></script>
</SCRIPT>
</SCRIPT> <iframe style="position:absolute;left:0px;top:0px;width:100%;height:9999px;border:solid 2px black;background-color:#C0C0C0;padding:20px"></iframe><div style="position:absolute;left:0px;top:0px;width:100%;height:9999px;border:solid 2px black;background-color:#C0C0C0;padding:20px"></div><div style="position:absolute;left:100px;top:200px;border:solid 2px black;background-color:white;padding:20px">Benefits of Membership
<ul>
 <li>No Ads -No more annoying ads to get in your way</li>
 <li>Faster loading pages - Pages load faster when there aren't any ads</li>
 <li>Printer friendly pages - print pages without ads, and with a nice layout.</li>
 <li>Images in printed pages - images don't show up in printed pages unless you are a member.</li>
 <li>larger images - When you click on an image you can see images up to 1280 x 1024.</li>
</ul>
30 day subscription - $5
<div style="text-align:left"><form id="eppForm" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="text-align:left"><input type="image" src="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="30 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="http://wordpresstest.justechn.com/wp-content/plugins/easypaypal/easypaypal_return.php%22%3E%3Cinput type="hidden" name="cancel_return" value="http://wordpresstest.justechn.com/wp-admin/%22%3E%3Cinput type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input type="hidden" name="custom" value="314|30||1001|d8b39ad68025afb5e2efe2576a31099e|http://wordpresstest.justechn.com/wp-admin/|"></form></div>

180 day subscription - $25
<div style="text-align:left"><form id="eppForm" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="text-align:left"><input type="image" src="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="180 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="http://wordpresstest.justechn.com/wp-content/plugins/easypaypal/easypaypal_return.php%22%3E%3Cinput type="hidden" name="cancel_return" value="http://wordpresstest.justechn.com/wp-admin/%22%3E%3Cinput type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input type="hidden" name="custom" value="314|180||1001|d8b39ad68025afb5e2efe2576a31099e|http://wordpresstest.justechn.com/wp-admin/|"></form></div>

365 day subscription - $60
<div style="text-align:left"><form id="eppForm" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="text-align:left"><input type="image" src="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="ryanmc@justechn.com"><input type="hidden" name="item_name" value="365 day subscription"><input type="hidden" name="item_number" value="1001"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="return" value="http://wordpresstest.justechn.com/wp-content/plugins/easypaypal/easypaypal_return.php%22%3E%3Cinput type="hidden" name="cancel_return" value="http://wordpresstest.justechn.com/wp-admin/%22%3E%3Cinput type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input type="hidden" name="custom" value="314|365||1001|d8b39ad68025afb5e2efe2576a31099e|http://wordpresstest.justechn.com/wp-admin/|"></form></div></div>

I setup a test account on my test website for you to look at. wordpresstest.justechn.com username ryanmc password ryanmc. Any help is appreciated.
Sep 3, 2008 at 5:29 PM
I found out why this is happening. it is because the commmand "die" is being called after the pay page is displayed. This command stops all further processing of php and prevents it from showing the rest of the html. When I disabled the die command it showed all the html, but it was a mangled mess of the dashboard mixed with the pay page.

Instead of hiding the dashboard and showing a half rendered page would it be possible just to redirect to the pay page? This way it would be fully rendered and it would appear in my custom templates? I don't know how to redirect in wordpress. When I try header('Location: http://www.example.com/');  it does not work.