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 8 of 8

Thread: Help with Form

  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Help with Form

    New to codingforums.com. Very cool to have this (I'm new to coding).

    I'm trying to create a form that when the user inputs their information and hits submit-it creates another page in the directory with their inputs saved.

    Essentially,

    1. I want a user to be able to input their information.
    2. It take them to a next page with their information saved.
    3. Be able to copy the new URL for others to see their form

    I will be forever in debt to whoever can help me out with this.

    Thank you in advance for your help and ideas.

    estiner

    updated (current html):
    <!DOCTYPE html>
    <html>

    <body>
    <head>
    <b><h2>Internet Email Settings</h2></b><br></head>

    <style type="text/css">
    .container {
    width: 200px;
    clear: both;
    }
    .container input {
    width: 100%;
    clear: both;
    }

    </style>


    <div class="container">


    <form>

    <b>USER INFORMATION</b><br><br>

    Your Name: <input type="text" name="Your Name"><br>
    Email address: <input type="text" name="Email Address"><br><br>

    <b>SERVER INFORMATION</b><br><br>

    Account Type:<input type="radio" name="account type" value="POP">POP<br>
    <input type="radio" name="account type" value="IMAP">IMAP<br><br>
    Incoming Mail Server: <input type="text" name="Incoming Mail Server"><br>
    Outgoing Mail Server (SMTP): <input type="text" name="Outgoing Mail Server"><br>
    <br>

    <b>LOGON INFORMATION</b><br><br>

    Username: <input type="text" name="Username"><br>
    Password: <input type="text" name="Password"><br>
    Remember Password: <input type="radio" name="rmbr pass" value="Remember

    password"><br>

    </form>

    <body/>

    </html>
    Last edited by estiner; 02-01-2013 at 12:53 PM. Reason: To put in my current html

  • #2
    Regular Coder
    Join Date
    Sep 2011
    Posts
    330
    Thanks
    3
    Thanked 35 Times in 35 Posts
    If you really want that, I would advise you to hire someone to do it for you. Seeing the basic errors that you are making with the simplest HTML, you are a long way away from creating something like that.

    I don't even know how to make a webpage create another webpage and have that saved in the directory.
    Frank

    How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.

  • #3
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Frankie View Post
    If you really want that, I would advise you to hire someone to do it for you. Seeing the basic errors that you are making with the simplest HTML, you are a long way away from creating something like that.

    I don't even know how to make a webpage create another webpage and have that saved in the directory.
    Thank you for your help. I realize I'm new at this and the syntax is sloppy, but the form is working just like I need it to.

    I don't need a complicated form. Just something that sends the data and creates a new page with that data.

  • #4
    New Coder
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    I believe PHP is what you're looking for.

    It can take the data that gets POSTed to it and from there you can generate a webpage.

    But if you want it to create a file and store it on the server, it can probably do that, but it won't be as simple.

    Sorry I can't offer much more help.

  • Users who have thanked iksfcrc for this post:

    estiner (02-01-2013)

  • #5
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iksfcrc View Post
    I believe PHP is what you're looking for.

    It can take the data that gets POSTed to it and from there you can generate a webpage.

    But if you want it to create a file and store it on the server, it can probably do that, but it won't be as simple.

    Sorry I can't offer much more help.
    No, this is great!!
    I just need the user to be able to copy the url from the webpage it creates. Don't expect you to supply all the code, but can you point me in the right direction on what kind of PHP code I need to look for.

  • #6
    New Coder
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Quote Originally Posted by estiner View Post
    No, this is great!!
    I just need the user to be able to copy the url from the webpage it creates. Don't expect you to supply all the code, but can you point me in the right direction on what kind of PHP code I need to look for.
    Well, here's the thing. On a basic level, the php page will display the information on that page. So you can't really copy the url and expect to come back to the page with the information still present.

    IOWs, if you have form.html POSTing the information to process.php, then your resulting url will be:

    http://www.domain.com/process.php/

    Simply going back to that page will either result in an invalid page, or a reprocessing of whatever POST information is contained. (Not sure about exactly what happens here server side).

    What you would need is for the php script to generate and html page, then save it with a unique name so that it can be accessed continually.

    Unfortunately, I'm not experienced enough to send you in the right direction. I could help you process.php displaying the information, but that's about it.

    I can suggest one thing though.

    Code:
    <form>
    
    <b>USER INFORMATION</b><br><br>
    
    Your Name: <input type="text" name="name"><br>
    Email address: <input type="text" name="email"><br><br>
    
    </form>
    (I bolded the parts I'm referring to)

    I would change the name values to values without any spaces in them. I'm not positive, but pretty sure it will result in your php script not working properly if you try to implement spaces. In the best case, it will get messy, really quickly.

  • #7
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    This was a huge help!! I realized that I really don't NEED it to create a url (it's own page for each form submit), I just need the user to be able to copy and paste the information they put into the form. And your direction above definitely helped

    Thanks again!

  • #8
    New Coder
    Join Date
    Feb 2013
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Quote Originally Posted by estiner View Post
    This was a huge help!! I realized that I really don't NEED it to create a url (it's own page for each form submit), I just need the user to be able to copy and paste the information they put into the form. And your direction above definitely helped

    Thanks again!
    You're very welcome dude. Glad I could help out, this stuff can be maddening.


  •  

    Tags for this Thread

    Posting Permissions

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