The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
PHP form validation problem? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18) +--- Thread: PHP form validation problem? (/showthread.php?tid=1033) |
PHP form validation problem? - simy202 - Jan 12th, 2011 I'm making one form using php, so validation is using PHP too, I m posting the value in the same form and then trying to insert into mysql..look below.. I encountered the problem --------------------------------------… Code: <form method="post" enctype="multipart/form-data" name="form1" id="form1"> now what problem m facing here when i click on the "Submit" button i m getting the Error messages but the page is redirecting the i have to write all values all over again .. suppose i have already wrriten a "NAME(t1)" but didnt write a CONTACT NUMBER(t2) then after m clicking on the SUBMIT button when i do this my page redirecting, m getting the second error "write your contact number" but i have to write all the values like NAME etc all over again .. so my page is returning to true .. not false . do you know how to set "return false" through php just like we do using javascript .. i cant use javascript for this .. have to use php in this .. plz help me .. thank you .. RE: PHP form validation problem? - Albert2spear - Apr 13th, 2011 There might be some error in the code. You can take help of java script also. |