Contact form button click action - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Contact form button click action (/thread-24142.html) |
Contact form button click action - Man_from_India - Feb-01-2020 I created a contact me HTML page and there I created a Contract form and there is a submit button. I want to click on that button and check if all the text boxes that the form consists of is filled with user's input. If it is then I want to activate <form> method= post and at the same time create a popup message box showing "Form submitted successfully". If all the input fields are not entered, I don't want to activate <form> method= post and popup a message box showing "please fill all the input fields". How to implement that? I can't find a way to do that. I want to use just python and HTML and css. RE: Contact form button click action - snippsat - Feb-01-2020 (Feb-01-2020, 04:00 PM)Man_from_India Wrote: I want to use just python and HTML and css.Look at this post that i recently posted. This is the simplest way to work with HTML and CSS in Python,there is a layer below which is WSGI(an old retired CGI). To make it very clear you do not want to interact with this layer for a simple HTML Contract form, it's very hard because of the raw nature WSGI nothing is written finish to get values from a HTML form. Only people who want to make yet and other Python web-framework need to study and use WSGI directly. |