Jump to content

Recommended Posts

Do you have any code at all for this?

You will most likely start this off but creating an HTML form for the users to fill out the necessary information that you require.

Then you will want to use PHP to validate the user information, make sure that all of the necessary information is filled out, and if you so desire, store the information in a database for later use.

I am not sure of your programming skills, thus I am not sure how you know about how to tackle what I have just stated, if you need further assistance, let us know.

Link to comment
https://forums.phpfreaks.com/topic/242274-coupon-ad/#findComment-1244288
Share on other sites

1. Build a form for the users to enter their information

2. Create a script that processes the entered information and saves to a database. Also in that process store a unique code associated with the user. The provide a URL to the user (either on the web page when the form is submitted or via an email) with the unique code included as a parameter on the url, such as: www.yourdomain.getad.php&code=1234566789

3. Create the script to display the ad which pulls the unique code from the URL and verifies it against the database. This ensure only users who have provided their information can access the AD.

 

However, there is nothing to stop users from sharing the link with others. You could "try" and restrict users by IP address if it doesn't match the one used when submitting the form, but that's not a good idea. Or you could include an expiration date for the code in the database. Depends on what your business requirements are.

Link to comment
https://forums.phpfreaks.com/topic/242274-coupon-ad/#findComment-1244289
Share on other sites

Well this is kinda what I did.  I just made a wordpress site and put a plugin that basically would take the information that is inputted into it and email it to sales then redirect to the coupon site.  Only problem now is that they are wanting when the people are redirected for all their information to be there and two more labels.  One is stock # and the other is authorized by.  These will be filled in when they take to dealership by manager.  Oh and they have to be able to print this off lol. 

Link to comment
https://forums.phpfreaks.com/topic/242274-coupon-ad/#findComment-1244671
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.