Results 1 to 6 of 6

Thread: "Accept terms" form submission

  1. #1
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default "Accept terms" form submission

    Script: "Accept terms" form submission
    http://www.dynamicdrive.com/dynamici...acceptterm.htm

    Hello.
    In regards to the above script, just wondering how I direct the user to a certain page after "accepting" the terms. On my website I have 2 entrance points on the same page, both which need to say "I accept" or "I agree" before entering, but both points will take the user to a different section of my site. So where should I put the URLs etc?

    Any help would be much appreciated.
    Cheers.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Just set the action="url" and method="get" on your form, ex:

    HTML Code:
    <form action="somepage.htm" method="get" onsubmit="return defaultagree(this)">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks guys for this form, exactely what i needed!

    But if i direct a user to my shop after accepting the terms, there is a huge, ugly url in the browser with all my terms that are in the accept terms form.

    Is there any way to have a nice, clean url after directing the user to a page after accepting the terms form?

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Change the form method from "Get" to "Post". This will look like:

    Code:
    <form method="POST">
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    GET will display the info in the url, as: var1=content&var2=content2, etc.
    - Mike

  6. #6
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, that&#180;s it!
    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
  •