PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
but if i want to echo on the page with the form it doesn't work and i don't know how should i do the function to make the echo please can someone provide me with an explanation or a function ? thank you very much
Are you perhaps expecting that PHP can detect what the user does, without returning the form variables to a new script? Remember, once a web page is sent to the browser, there is no more PHP code in it. You can do one or more of the following:
Validate your form data in the browser with Javascript.
Validate your form data after the form has been submitted, using PHP (but now you must reload a new page).
Use Ajax (combination of Javascript and PHP scripts working together) to validate form data and optionally modify elements in the page that's already loaded.