how would i make this open in a new window?
<?php
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
?>
Thanks much!
Jon
how would i make this open in a new window?
<?php
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
?>
Thanks much!
Jon
You can use the Location: header..
But I am not sure if you want this as part of the if/else or when the button is pressed...PHP Code:header("Location: http://yoursite.com/newpage.php");
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Actually, whats happening is that this is a peice of Oscommerce's cart, and for what ever reason since it is being run out of an iframe the paypal payments wont function properly, so i figured if when they clicked "Confirm Order" it would bring a popup to the paypal site, which should work... rather than just loading it in the iframe, which isnt working...
Basically im just trying to do something like <target="_blank"> except in php
Oh, well.. you CAN do it in php, but I find JS to handle "pop-ups" a lot better..
Code:<script language="JavaScript"> <!-- // function wo(url, name, bits) { newWin=window.open(url, name, bits); newWin.focus(); } // --> </script>
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Oh, so where exactly should i place it in the code?
It's kind of confusing because its not calling a specific page, rather a "payment module"
Or at least that's what i think is happening.
Also, this is just a segment of code... the page is rather long.
Last edited by Jon101; 12-19-2007 at 05:44 PM.
You can use the above code, changed to your attributes, in the <head>
then in the <body> you call it like so:
Code:<a href="popup.html" onclick="return wo('popup.html')" >Link to popup</a>
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
ALright cool, but the code above will work in php?
Yup. It is just basic JS for a pop up.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
alrightie, thanks for the help!
Bookmarks