Jump to content

Rather Trickey php question


voyde

Recommended Posts

Ok in a nut shell....

 

User is going to submit something....

asks for paypal email...

submits the information, shown on a certain page after approval...

Tricky Part:

the ads on the page, once click how to give credit to the user? after certain amount of money is collected from the ad's the money is paypal'ed to the users paypal account.

 

Possible?

Link to comment
Share on other sites

Hmm...

 

You would need to either

a) Have some method of processing the fact that the ad was clicked on YOUR server-side

or

b) Have some method of processing the fact that the ad was clicked on THEIR server-side (the page being linked to by the ad)

 

For a, you could potentially link the anchors via a javascript function that would register the fact that the ad was clicked and then redirect the page URL to the requested URL.

For b, you could possibly have a script on their server that would need to be run every time a page were accessed (standard header include perhaps) that would make a call back to the referrer URL notifying of the fact that the page was accessed.

 

A, if you can count on your users having javascript, would be much easier.

 

Just set up an AJAX call (prototype/Xajax are great libraries for such) to note the fact in a database or whatever, then redirect the URL. Or you could link the click to your own page with some sort of GET variables denoting the fact it was an ad click, register the click with your DB, then use a header redirect to the page shown in the ad, kinda like awpti was talkin about.

 

 

Link to comment
Share on other sites

Yes you would have to make a onClick sort of thing which will send add a click in the database or whatever. I wouldn't suggest using any of those agencies, they would be impossible to do it through since it is against their terms and they have complicated systems that wouldn't allow you to do that. I think websites of the kind you would like to make, make deals with seprate websites or have the users sign up for refferals.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.