manalnor Posted July 13, 2010 Share Posted July 13, 2010 Hello dear friends, that should be the link php code $GETstring = "?type=$type&desc=$desc&amount=$amount&tmpmemberID=$tmpmemberID&paymentID=$paymentID"; where $type and $desc and $amount and $tmpmemberID and $paymentID are anything , that link should call the following code then redirect me to paypal page case 3: // Paypal echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal">'; echo '<input type="hidden" name="business" value="'.$items[0].'">'; echo '<input type="hidden" name="currency_code" value="'.$items[1].'">'; echo '<input type="hidden" name="cmd" value="_xclick">'; echo '<input type="hidden" name="notify_url" value="'.$notify_url.'">'; echo '<input type="hidden" name="return" value="'.$return_url.'">'; echo '<input type="hidden" name="cancel_return" value="'.$cancel_url.'">'; echo '<input type="hidden" name="item_name" value="'.$desc.'">'; echo '<input type="hidden" name="item_number" value="'.$transID.'">'; echo '<input type="hidden" name="amount" value="'.$amount.'">'; echo '</form>'; echo '<script>document.paypal.submit()</script>'; break; on IE it works and send me to paypal page...with all informations on FF it not working and give me blank page and stopped never redirect me !!!!! WHY ! i've made view source for that blanl page and found <form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="notify_url" value="http://www.*****.com/PayPal.php"> <input type="hidden" name="return" value="http://www.c*****.com/index.php?action=signupsuccess"> <input type="hidden" name="cancel_return" value="http://www.*****.com/index.php?action=signupfail"> <input type="hidden" name="item_name" value="Website Name - paid membership : 1 month"> <input type="hidden" name="item_number" value="14"> <input type="hidden" name="amount" value="12.00"> </form> <script>document.paypal.submit()</script> so everything is fine but why not sending me to paypal page .. maybe there is something wrong with that code <script>document.paypal.submit()</script> please anyone has any idea about it why working on IE and not on Firefox. thanks Link to comment https://forums.phpfreaks.com/topic/207635-why-it-isnt-working-on-firefox/ Share on other sites More sharing options...
AbraCadaver Posted July 13, 2010 Share Posted July 13, 2010 You need a valid HTML document (hint: html, head, body). Once that is fixed it will work, but you really should have this: <script type="text/javascript">document.paypal.submit();</script> Link to comment https://forums.phpfreaks.com/topic/207635-why-it-isnt-working-on-firefox/#findComment-1085471 Share on other sites More sharing options...
manalnor Posted July 13, 2010 Author Share Posted July 13, 2010 thank you , it works perfect now Link to comment https://forums.phpfreaks.com/topic/207635-why-it-isnt-working-on-firefox/#findComment-1085480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.