Need some help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Daz Wilde
Forum Newbie
Posts: 9
Joined: Sun Oct 02, 2005 12:02 pm

Need some help

Post by Daz Wilde »

Hi im pretty new to php and need some help on this.

I've got a site which a friend programmed for me, but now he isnt around i need some help.

The site is databse driven and has various products. I want it so when they have found thier product they click buy now and it takes them to the order page but with the Product details echoed so they just have to fill in thier card details.???? Am i making sense....?

Anyway here is the site with on the products. It currently just takes you to the order page but hasnt got the details on the order page.

http://www.alloywheelsquick.co.uk/searc ... bcategory=

Cheers
User avatar
shoebappa
Forum Contributor
Posts: 158
Joined: Mon Jul 11, 2005 9:14 pm
Location: Norfolk, VA

Post by shoebappa »

You'd copy the code that queries and displays the product detail from the search.php file and put it in the order.php file. You'd probably have to change the query to only match Ref # to the one chosen. Since you're not passing that to the order page, you'd need to do that by adding it to the href of the order button or switching the order button to a form field and putting the Ref # in a hidden field. That way you wouldn't make them retype the Ref #, it'd be stored in a hidden field.

A much bigger problem would be the fact that you're taking credit card payments in the clear (unencrypted). SSL Certificates aren't cheap, you may look at using a third party to accept the payment info, rather than mess with that stuff yourself. Last I checked, Paypal had a shopping cart system that charged a small fee per transaction.
Daz Wilde
Forum Newbie
Posts: 9
Joined: Sun Oct 02, 2005 12:02 pm

Post by Daz Wilde »

Its just a test run at the mo, how much is a ssl?

If im struggling with this code can i give you a shout?

I'll have a bash tomorrow
Post Reply