Hello I need someone who knows php to add my paypal button code to a php file. Take out the old info and put mine in. (I already have my code) Must have MSN messenger. PM if interested
If I felt comfortable doing it myself I wouldnt be trying to pay someone to help me If its so easy then why has nobody but you responded lol?
Okay here's the old script: <?session_start(); //--------------------------------------------------------------------------------------- // Return url from 2 checkout //--------------------------------------------------------------------------------------- if($retfrom=="2check") { ?> <form name="retform" action="pay_succ_2check.php" method="post"> <input type=hidden name=product_id value="<?=$product_id?>"> <input type="hidden" name="retcode" value="<?=$retcode?>"> <input type="hidden" name="retfrom" value="2check"> </form> <script language=javascript> retform.submit(); </script> <? //header("Location: http://".$db->siteurl."/pay_succ.php"); die(); } //--------------------------------------------------------------------------------------- // end return url of 2 checkout //--------------------------------------------------------------------------------------- if($USERID == "") header("Location: home.php"); ?> <? include("include/connectdb.php"); include("include/DbSql.inc.php"); include("include/PicSql.inc.php"); $db = new PicSQL($DB_NAME); $flag=$_GET[flag]; $sqladmin="select * from locker_admin"; $resadmin=$db->select_data($sqladmin); $sqllink="select * from link"; $reslink=$db->select_data($sqllink); // set Cookies $secretword=$reslink[0][secretword]; $value=$USERID."-".$secretword; setcookie ("AccessCookie", $value); //setcookie ("AccessCookie", $value,time()+1200); /* expire in 1 hour */ //end set cookies if($flag==1) { $sql="update member set acc_type='y' , status ='a' where uid='".$USERID."'"; $res=$db->update_data($sql); $tm=time(); $sqli="insert into member_payment(memid,amount,pdate) values('".$USERID."','".$resadmin[0][member_fees]."','".$tm."')"; $resi=$db->insert_data($sqli); // -- CODE TO UPDATE MEMBER ACCOUNT IN AFFILIATE SECTION $ip = $_SERVER['REMOTE_ADDR']; $sql1="update aff_referrer set flag='y' where mem_id = '".$USERID."' and ip_addr='".$ip."'"; $res1=$db->update_data($sql1); // -- END CODE TO UPDATE MEMBER ACCOUNT IN AFFILIATE SECTION header("Location: ./prod_security.php"); } $sqladmin="select * from locker_admin"; $resadmin=$db->select_data($sqladmin); include("include/header.php") ?> <table width=100% border="0" cellspacing="0" cellpadding="0" align="center" valign=top bgcolor=#ffffff> <tr> <td align=center> <TABLE cellPadding=15 width=100% border=0> <TBODY> <? if ($mess=="cancel") { ?> <tr> <td align=center> <FONT style="FONT-SIZE: 10pt" face=arial,sans-serif> <H3>Note : You have cancel your subscription<br> You are not able to access your account....</H3><br> </font> </td> </tr> <? } ?> <TR> <TD><FONT style="FONT-SIZE: 10pt" face=arial,sans-serif> <H3>Activate your <?=$db->siteinitial?>.com Account</H3>We appreciate your decision signing up with <?=$db->siteinitial?>.com. We are sure that this is the best way of protection and refunding decrease for those who are producing software and any other sold E-product. <? if($resadmin[0][flag_card] == 1 && $resadmin[0][flag_paypal]==1) { ?> <BR><BR>Please select a payment method below... <?}else{?><BR><br> <!--<input type="button" name="Pay" value="Pay" class=box onclick="window.open('http://www.productbrander.com', 'Account_Details', 'top=10,left=100,right=700,width=700,height=700')">--> <?} $secretword=$reslink[0][secretword]; if($resadmin[0][flag_card] == 1) {?> <BR> <form name="myform" action="https://www.2checkout.com/cgi-bin/crbuyers/recpurchase.2c" method="post"> <!--<form name="checkout" action="https://sellers.2checkout.com/cgi-bin/sellersarea/recpassback.2c" method=post>--> <!--<form name="checkout" action="https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c" method="post">--> <!--<form name="myform" action="" method="post">--> <? $card_id=$resadmin[0][card_id]; $total=$resadmin[0][member_fees]; $retcode=$USERID."-".$secretword; ?> <INPUT type="hidden" name="sid" value="<?=$card_id?>"> <input type=hidden name=product_id value="1"> <input type="hidden" name="total" value="<?=$total?>"> <input1 type="hidden" name="retcode" value="<?=$retcode?>"> <input1 type="hidden" name="retfrom" value="2check"> <!--<input1 type="hidden" name="demo1" value="Y">--> <!--<input type=submit name=btnchkout value="2CheckOut" class=box>--> <center><input type=image name=btnpaypal src="images/2checkoutpay.gif"> <br> <? if($resadmin[0][flag_card] == 1 && $resadmin[0][flag_paypal]==1) { ?> 2Checkout <? } ?> </center> </form> <!-- <A href="https://www.2checkout.com/cgi-bin/crbuyers/recpurchase.2c?sid=32940&product_id=19"><FONT style="FONT-SIZE: 12pt"><B>Credit Card</B></FONT></A> --> <?}?> <? if($resadmin[0][flag_paypal] == 1) { ?> <!--Paypal --> <form name="paypal" target="_new" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <? $itemname=$resadmin[0][site_name];//;$res[$i][fq_title]; //"me@mybiz.com";// $business=$resadmin[0][owner_paypal_email];//$db->getadmininfo("owner_paypal_email"); $itemnumber=$fqid."|".$fqcode."|".$ffq_id."|".$USERID."|".$totamt."|".$mainamt; $noshipping=$USERID."-".$secretword; $successurl="http://".$db->siteurl."/pay_succ.php"; $unsuccessurl="http://".$db->siteurl."/pay_fail.php"; $payamount=$resadmin[0][member_fees];//$totamt; include("include/payment/subpaypal.php"); $linkstr="item_number=".$itemnumber."&no_shipping=".$noshipping."&ptype=25%"; ?> <? $bus=$db->getadmininfo("owner_paypal_email"); //echo "Paypal ID : <br>".$bus; ?><br> <!--<input type=submit name=btnpaypal value="PayPal" class=box>--><br> <center><input type=image name=btnpaypal src="images/pay.gif"><br> <!-- new code --> <!--<input type="image" src="http://www.paypal.com/images/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">--> <input type="hidden" name="a3" value="<?=$payamount?>"> <input type="hidden" name="p3" value="1"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <!-- end new code --> <? if($resadmin[0][flag_card] == 1 && $resadmin[0][flag_paypal]==1) { ?> Paypal <? } ?> </center> <!--<input type=submit name=btnpaypaltext value="Testing" onclick="return fun_addamt(this.form,'<?=$linkstr?>')" class=btnh8><br>--> <!-- <a href="cl_pay_deposit_succ_of_fl.php?< ? = $ linkstr ? > ">Temp. Payment link (For Texting)</a>--> </form> <!-- end paypall--> <?}?> <BR><BR> <center> <!--<A href="pay_succ.php?no_shipping=<?=$noshipping?>--> Click here to <A href="logout.php">Log Out</A>. </center> <BR><BR> <CENTER> <SCRIPT language=javascript src="actiateaccount_files/box.htm"></SCRIPT> </CENTER> <P> </FONT></TD></TR></TBODY></TABLE> </td> </tr> </table> <?include("include/footer.php")?> PHP: It's a mess LOL. Any help would be great!
The paypal code is already in there. You just have to enable it from the adminpanel and set your paypal emailaddress somewhere there.