make a page unaccessable until credit card validation?
Moderator: General Moderators
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
make a page unaccessable until credit card validation?
Ok, i have a site for people to place ads online. I want them to be able to put their ad in my database but not until they pay. How can I prevent them from accessing a script to insert their information until their payment has been validated? I dont have a script started so, any suggestions would work.
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
I think what Jim meant was accept their information but flag it until the payment has been authorised. If the payment isn't authorised or they don't pay within a specified time period you delete their info. If their credit card goes through fine you unflag the info and the banner goes live.
Or you could have it so you need a username and password to login to an admin area where ad details can be added and the username and password are sent out when their card is validated.
Mac
Or you could have it so you need a username and password to login to an admin area where ad details can be added and the username and password are sent out when their card is validated.
Mac
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Basically you need to have a database or flat file with usernames and passwords stored in it. Then you have a login screen like you do for things like this forum, which requests that data. You then compare the users info with info in the database and if you get a match the person is then allowed into the secure area. The script to test for logged in status is included at the top of each page that needs to be secure.
A fully coded example of a login script using a database is available here:
http://www.evolt.org/article/Creating_a ... index.html
Mac
A fully coded example of a login script using a database is available here:
http://www.evolt.org/article/Creating_a ... index.html
Mac