php - Code that checks for required text in textboxes upon submit -


how can check if user filled textboxes upon submit? textboxes have different id , name.

if user did not fill required password form not continued.

thank you.

you can using javascript or within script itself.

if using javascript, check form fields against requirements before allowing form submit. however, may still need implement in script in case ofr reason have javascript turned off.

basically, in script, check values of form when submit:

if($_get['field_name']) !== 'the value expect') {   // show form again errors }  // continue 

hope helps.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -