| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: England
Posts: 1,197
![]() ![]() ![]() ![]() ![]() ![]() | order form help. I have an html order form, once submitted it process's the following script, but when it goes to paypal it's in $ and not £, even though it's set to GPB, anyone have any ideas.. <? //----------Configuration Area ------ //----------Modify section ----------- //The Email Address in which you would like to receive order confirmation $EmailAddress = ""; //The Subject of the email message you receive when someone makes a purchase $EmailSubject = "Notification of Web Hosting Order!"; //Should the script send an email to the user when it has successfully placed //an order through your website? Yes or No $ReplyBoolean = "Yes"; //The Name in which you would like to use as the sender of the follow up order email $SenderName = ""; //The Email address from which the script will use to send the email to the user $SenderEmailAddress = ""; //The Subject of the email message your user receives as a follow up order letter $SenderEmailSubject = "Thank you for your web hosting order!"; //The body of the email message your user receives $SenderBody = "We have received your hosting order and will process it shortly, please ensure you have a valid domain name, no refunds will be given if you place an order and don't have a domain name."; ????: NamePros.com http://www.namepros.com/programming/123489-order-form-help.html "Once your order has been processed you will receive an email with instructions on what to do next"; //Should the script send an invoice to the user? Yes or No $InvoiceReplyBoolean = "Yes"; //The Name in which you would like to use as the sender of the invoice $InvoiceSenderName = ""; //The Email address from which the script will use to send the invoice to the user $InvoiceSenderEmailAddress = ""; //The Subject of the invoice your user receives $InvoiceSenderEmailSubject = ""; //Paypal Email Address $PaypalEmail = ""; //Should the payment be a Paypal Subscription? Yes or No $PaypalSubscription = "Yes"; $currency_code = "GBP"; //========== PHP Script ========== //========== Don't modify below this line if you don't know how to do=========== list ($productname, $productprice, $extra) = split('/',$txtproduct); mail( "$EmailAddress", "$EmailSubject: $txtsubject", "Purchaser: $txtfirstname $txtmiddlename $txtlastname ($txtemail) \nItem: $productname at $productprice per unit. \n\nName: $txtfirstname $txtmiddlename $txtlastname\nAddress: $txtaddress\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nDomain name: $txtdomain \nUsername: $txtusername\nPassword: $txtpassword\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nComments: $txtmessage", "From: $txtemail" ); $ReplyBoolean = strtolower($ReplyBoolean); if($ReplyBoolean == "yes") { mail( "$txtemail", "$SenderEmailSubject", "Dear New Customer$txtname, \n\n$SenderBody \n\n$SenderName", "From: $SenderName <$SenderEmailAddress>" ); } $InvoiceReplyBoolean = strtolower($InvoiceReplyBoolean); if($InvoiceReplyBoolean == "yes") { ????: NamePros.com http://www.namepros.com/showthread.php?t=123489 mail( "$txtemail", "$InvoiceSenderEmailSubject", "=====================\nWeb Hosting Online Order Invoice\n=====================\n\nPurchaser: $txtname ($txtemail) \nWeb Hosting Package: $productname at $$productprice per month. \n\nName: $txtname\nAddress: $txtaddress\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nDomain name: $txtdomain \nUsername: $txtusername\nPassword: $txtpassword\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nRemarks: $txtmessage\n\n$InvoiceSenderName", "From: $InvoiceSenderName <$InvoiceSenderEmailAddress>" ); } if(strtolower($txtpayment) == "pp") { if(strtolower($PaypalSubscription) == "yes") { header ("Location: https://www.paypal.com/subscriptions/business=$PaypalEmail&undefined_quantity=1&item_na me=$productname&a3=$productprice&p3=1&t3=M&src=1&s ra=1&no_shipp//ing=1" ); } elseif(strtolower($PaypalSubscription) == "no") { header ("Location: https://www.paypal.com/xclick/business=$PaypalEmail&undefined_quantity=1&item_na me=$productname&amount=$productprice&no_shipp//ing=1" ); } } elseif (strtolower($txtpayment) == "cc") { header ("" ); } ?> Many Thanks |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | well first of all, im 100% sure that ALL of us wud benefit if u simply wrapped [PHP] tags around that code. are you sure ur defining the right variable to be GBP? idk nething about paypal scripts. whered u get this? maybe i can go thru it and see how it works and help you.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #3 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Yes, always put code in either the php, code, or html tags!! EDIT: Found the problem PHP Code: PHP Code:
Last edited by SecondVersion; 09-13-2005 at 10:03 PM.
|
| |
| | THREAD STARTER #4 (permalink) |
| Senior Member Join Date: Aug 2005 Location: England
Posts: 1,197
![]() ![]() ![]() ![]() ![]() ![]() | I didn't make the script, I purchased it with loads of others about 9 months back and just found it. Seconversion i edited with your suggestion and get the following error Error Detected You have entered unsupported characters for this field. Currently only Western European and Chinese characters are supported. Please try again with different characters. |
| |
| | #6 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | PHP Code:
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paypal Settlement | CMachuca | The Break Room | 3 | 07-31-2004 11:14 PM |
| PAYPAL Litigation | johnn | Domain Name Discussion | 6 | 07-31-2004 10:51 PM |
| Paypal Settlement | Lord | The Break Room | 2 | 07-30-2004 10:30 PM |
| PHP WebHost Order Form | BoRiCuA | The Break Room | 4 | 04-30-2004 09:45 PM |
| order Form | Lew | Programming | 5 | 10-20-2003 08:55 PM |