How do you get a message to the user that the form is sent?



  • I'm just starting to develop a web design, so I'm looking for a response here.

    http://codepen.io/Tarasovych/pen/RRRqNy

    Would it be easier to make a floating window? Or reread on the page where the form is sent.

    <body>
        <div class="tablebg">   
            <div class="table2">
                <form action="" method="POST" id="formID">
                    <div class="leftblock">
                        <div class="nameblock">
                            <input name="name" type="name" placeholder="NAME" required="true">
                        </div>
                        <div class="emailblock">
                            <input name="email" type="email" placeholder="EMAIL" required="true">
                        </div>
                        <div class="webblock">
                            <input name="web" type="url" placeholder="WEB" required="true" pattern="https?://.+" >
                        </div>
                    </div>
                    <div class="rightblock">
                        <div class="messageblock">
                            <textarea name="name" placeholder="MESSAGE" required="true" ></textarea>
                        </div>
                        <div class="sumbitblock">
                            <input type="submit" value="SEND" class="button">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </body>
    


  • It's easier to make a recount. I mean, the form goes to the server, the user's drawing up a new page with a message. Example of PHP forms: http://php.net/manual/ru/tutorial.forms.php

    Better (previously speaking) to make Ajax a request, the server gets a form, and the user on the same page sees a notice of shipment. Example of processing of PHP Ajax request: http://blog.ox2.ru/php/ajax-form/

    Examples of PHP use variable $_POST. I mean, the form should use the method of dispatch. <form method="post">♪ Details on the methods of departure can be read here. https://ru.wikipedia.org/wiki/HTTP#.D0.9C.D0.B5.D1.82.D0.BE.D0.B4.D1.8B




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2