SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post User registration form help

    Hi every body..
    i have some problem,, problem is that i want to make a prepaid customer pages.. like that a customer enter an activation code
    & access code, mysql verify it(if data exists in database).That
    the code are matched and then go to next page named as
    registration page where user inputs their details like Fullname,
    Username,password,confirm password,Ic number,H/P,Email
    for confirmation (When he click submit a link shows that
    a confirmation email is sent to ur mail.).Then their he click
    the link and the username & password is activated.But
    With from current date to 1 month.After 1 month the the activation code & access code expired and message shwn when he login
    to his account that ur account is expired plz renew it.
    If any body have some idea ,plz share with me.
    i will be thankful.
    And thanks in advance...

  2. #2
    SitePoint Enthusiast Starbuck's Avatar
    Join Date
    Dec 2006
    Location
    ModxVille
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So on the date the activation link is created, store that (date + 1 month) in a mysql field - if the date the attempt is made is beyond that date, then give the status field (create one) a value representing that event -1, -2 etc etc - then create a script to handle accounts depending on their status code.

    So the logic would be, current date > valid till date { write new status code }
    status code = -1 {$msg = "your accounts expired"}

    Is that what you are meaning ?

  3. #3
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for ur reply.
    Yeh u r right here but have u some idea for
    to maintain the username with password(I mean that
    the main account is activate but the activation code
    And access code which the user enter for one month
    .After one month the codes expires but the main account still
    remain valid.After loging in a page ask that ur codes r expired
    renew ur account with using new prepaid card codes,but this time
    he only use access code,not activation code.Bcoz the
    activation code & access code both r only for 1st time reg.)
    If u give some good idea that how to handle this.
    Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •