/    Sign up×
Community /Pin to ProfileBookmark

Hi all,

I was wondering if it would be possible to POST variables to a url with a variable after the file name? For example:

POST to [url]www.example.com/process.php?id=1[/url]

?

I’m asking because I have two PayPal accounts that use IPN (Instant Payment Notifications) to POST transaction variables to handler files located at a url I specify in my PayPal account. If the above works I would only need one handler file, reducing any redundancy caused by duplicate code!

Thanks!

dai.hop

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ZnupiJul 16.2008 — Yup, it works, for example:
[code=html]<form action="someScript.php?someVar=someValue" method="post">
<input type="text" name="someInput">
<input type="submit" value="Submit">
</form>[/code]

Would work as expected ?

Semi-offtopic: any good tutorials on how to do payments through paypal? Or should I simply read all the documentation they provide?
Copy linkTweet thisAlerts:
@sstalderJul 16.2008 — Since you are using the PayPal API in your variable for the IPN link just include your variables in the URL as normal.

I do the same exact thing for my IPN script.
Copy linkTweet thisAlerts:
@dai_hopauthorJul 17.2008 — Thanks all, worked a treat!

@ Znupi

I went with the documentation the developer center provided. Theres some some sample code up there as well that you can easily modify ?
×

Success!

Help @dai_hop spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...