hey all

I have a standard php form and I want a to add paypal purchasing action to it as well.

is there an easy way to do this?

thanks in advance

hey all

I have a standard php form and I want a to add paypal purchasing action to it as well.

is there an easy way to do this?

thanks in advance

post your code first. if is it has any modification , let me see your code.

yes post code please.

without seeing the code i think you have two options:

If you have access to the first action page (before paypal) then add this at the very end of the script (before any actual text output):

<?php
header('location: http://www.secondFormAction.com');
exit;
?>

which will forward the user to the next form action. if you do not have access to the first action then consider using ajax to submit the second action?

thanks for the responses

I did try the code that was presented by MaxMumford and it worked like a charm

it was exact way I was thinking of going but didn't know how to get there

thanks again

hey guys,

i am trying to accomplish this too but cant get the little sucker to work...

i had a php contact form which iadded fields to so now it's become a order form. well originally it sends me an email with the order, but now i need the paypal to process to. at the minute i can either do one or the other.

i tried adding the paypal url (https://www.paypal.com/cgi-bin/webscr) to the header redirect but it didnt work.

i only know html and css, so i'm kind of stuck :-\

thanks for the help

Shelton

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.