Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Mar 2009
    Posts
    108
    Thanks
    13
    Thanked 0 Times in 0 Posts

    DIV/Inline Frame/Form Question

    Hey Guys,

    I'm putting together an automated form that will record user entries and mail them to a specified email address once the user has completed the fields. The form is long enough to where it needs two pages of space for all the fields.

    The first page will contain contact info etc.
    The second page will contain the specifics regarding the users request for info.

    I'm not good at handling perl/cgi etc let alone passing variables between pages.

    I was thinking about setting up an inline frame with an html document that is larger then the frame's screen area, then using an anchor link from the first "submit" button to the top of the second area of the html document which would contain the second part of questions, and the real submit button that would mail all the info together.

    However this seems like bad coding and I was wondering if anyone knew of a better way to collect form data from 2 "pages" without sending two emails or intricate variable passing?

    Thanks in advance.

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    This is more of server-side question than an HTML/CSS question. There may be an easier way to do it with PHP than with Perl/CGI, but that's something the server-side guys can respond to more authoritatively. Ask a mod to move your post over there.

    That said, I can tell you that iframes are generally more trouble than they're worth. They won't validate with a strict DOCTYPE (the only way to code, IMHO), and the same issues that arise with "conventional" frames afflict them as well.
    matt | design | blog

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Can't you just group the related items into some field sets like http://www.alistapart.com/d/prettyac...rms/example_3/ and then make a two column layout to include all of them in a single page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Regular Coder
    Join Date
    Mar 2009
    Posts
    108
    Thanks
    13
    Thanked 0 Times in 0 Posts
    Thanks for the advice :

    If any mods are reading this it would be appreciated if this topic was moved.

    As for splitting them into 2 columns on the same page, I appreciate the advice but the reason for splitting the forms to two pages is so that the fields don't overwhelm the user - something that we're worried about if we have both sets display together.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    So kind of like what this guy does. He essentially is using anchors to get to the rest of the parts of his site.

    http://www.arthsu.net/portfolio/
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    CSSQuest (03-12-2009)

  • #6
    Regular Coder
    Join Date
    Mar 2009
    Posts
    108
    Thanks
    13
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    So kind of like what this guy does. He essentially is using anchors to get to the rest of the parts of his site.

    http://www.arthsu.net/portfolio/
    Exactly, just without the fancy slide effect. I've yet to really think of an alternative that doesn't involve two separate forms or passing info.


  •  

    Posting Permissions

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