![]() |
|
[PHP] Register system validation? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] Register system validation? (/showthread.php?tid=5460651) |
Register system validation? - chaddious - Nov 11, 2016 Hello HF! I am trying to remove some things from my register system and can't seem to find where the code goes to validate if the information isn't alreaady in use or is a proper answer, can some one give me a hand? thanks in advance! So for exmaple if i want to remove the country section <div class="form-group"> <label for="country"><?=$this->lang->line('application_country');?> *</label> <input id="country" type="text" name="country" class="form-control" value="<?php if(isset($registerdata)){echo $registerdata['country'];}?>" required/> </div> but when i try to register, it still tries to validate country, i can't seem to find where it is validating it. Are you able to see it in here? http://pastebin.com/TZW00SA5 http://pastebin.com/JgC2yWes * - Zippy™ - Nov 11, 2016 This is how a basic form proccess goes in my eyes on a very very simple way. User fills input > PHP checks if input is not empty > Clean your strings ( Htmlspecialchars etc ) > Validate Data > Proccess It There are options and ways to do it but I think you got the idea now if now share you file and ill comment out where you can do your stuff. * - Scy7e - Nov 11, 2016 We can't help you clean your code if we can't see the code. * - Prof. Farnsworth - Nov 11, 2016 (Nov 11, 2016 07:28 AM)Scy7e Wrote: We can't help you clean your code if we can't see the code. This. Without seeing the code we can't see what's in there. Usually the form should look like this: Code <form action="somefile.php" method="post">So check what the action is, so you can find where it sends the post(or whatever it does). * - chaddious - Nov 11, 2016 (Nov 11, 2016 08:05 AM)Yani Wrote: Post your code code posted, thank you. * - Prof. Farnsworth - Nov 11, 2016 (Nov 11, 2016 08:11 AM)Yani Wrote: You should look in the "Company" class: Yeah, I already told him in PM. Btw OP, in the future always post the code and in pastebin select the syntax, it makes it a bit easier to read the code. * - chaddious - Nov 11, 2016 (Nov 11, 2016 08:11 AM)Yani Wrote: You should look in the "Company" class: another user just pointed this out, i'm not sure how i missed the one at the top of the class. feel like an idiot, thank you. |