Advanced Search

Results 1 to 7 of 7

Thread: php form submission

  1. #1
    Join Date
    Dec 2009
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question php form submission

    Hi guys,

    I have a HTML form linked to a PHP file that sends and email to my email, the form has a terms and conditions box to tick if the user has read them, what i would like to know is:

    is there a way to make it check if the user has opened the T&C's page and if not display a php message in the form and not allow the form t be submitted?

    P.S have looked everywhere i can think of online for this, I cant find anything suitable.

    Thanks is advance

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    227
    Thanks
    1
    Thanked 17 Times in 17 Posts

    Default

    Try something like this. On the t&c page set a cookie or session var when the page loads. Then on the main page once they submit the form check if that cookie/session var has been set and if not return a error message to them.

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,167
    Thanks
    62
    Thanked 446 Times in 435 Posts
    Blog Entries
    7

    Default

    Quote Originally Posted by moose86 View Post
    is there a way to make it check if the user has opened the T&C's page and if not display a php message in the form and not allow the form t be submitted?

    P.S have looked everywhere i can think of online for this, I cant find anything suitable.
    there really is nothing "suitable." For example, in fastsol's suggestion above, how do you know that the user didn't read the Terms on an earlier visit?

    For that matter, you still don't know that they read the Terms even if you force them to open the page on every visit.

    At the end of the day, EULAs (of which TOS agreements are a subset) are questionably enforceable, at best - simply on the grounds that no one reads them.

    In practice, an un-checked "TOS" box is generally sufficient for websites. If you want to be sure that they read the TOS, you could have a quiz as part of the registration process...
    Adrian ~ facebook | gist/github

    ['66.215.156.37','208.75.149.97'] // ip,ip array!
    "Take that sticker *off* your hat; you look stupid" --Wil Wheaton

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    11,832
    Thanks
    233
    Thanked 659 Times in 647 Posts

    Default

    I agree with traq. The best you can do is to force them to "admit" to having read the TOS. Then it's their fault (even legally) if they don't know something.

    Of course it wouldn't be very nice to trick them into not reading the fine print, but as long as you make a reasonable effort to make the TOS clear (and potentially even if you don't), you've done your job as long as they signal that they did read it and agree to having done so.


    If you want to force them to read it, I suggest embedding the TOS into the registration form. If it's too long, then cut it down or even make a shorter version as a preview and add a link to the real TOS. No one is going to read 50 paragraphs. Most users will probably at least skim 1.
    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية

  5. #5
    Join Date
    Jan 2012
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    well I suppose there is solution to check if they clicked the link of T&C, but not sure if they read or not but at least the clicked and open the T&C page.
    so here what you need to do is check:
    if user clicked the button then allow them to resume if not show error message and that will not going to work with php it just javascript and also have problem cause its not server side and the user could change it, but hope it'll help. but I'm also recommend to use fastsol1 solution for this one. or use traq solution with check box under T&C.

  6. #6
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Quote Originally Posted by moose86 View Post
    Hi guys,

    I have a HTML form linked to a PHP file that sends and email to my email, the form has a terms and conditions box to tick if the user has read them, what i would like to know is:

    is there a way to make it check if the user has opened the T&C's page and if not display a php message in the form and not allow the form t be submitted?

    P.S have looked everywhere i can think of online for this, I cant find anything suitable.

    Thanks is advance
    Taking a stab in the dark here, but you would be better off just presenting the T&C's such as the same way you registered for these forums if they are that important.
    onSubmit redirect to T&C's html page have a check box there to agree to and another button to submit the form information to email. This way there's no doubt they were directed to the T&C's it's up to the individual to read them which you can't force...

  7. #7
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello Guys!!!

    Thanks for your information...its really helpful to me...

Tags for this Thread

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
  •