Good day guys/gals,
I just want to kindly ask for suggestions about my form. I want to display the error on the same page where my form is if the user entered an invalid data on the registration form. I created a line of code on another page but logically it will load on the other page once the user clicked submit button. If i include my php code on my form code, it will display the way i want it to be BUT hackers can see my php code so it's not advisable to do it that way, right?
I want to display my errors on top of my form not on the other page once the user submits his data.
Thanks,
iskawt
Errors on top of registration form.
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Errors on top of registration form.
No, they can't see your code. You can safely place your PHP into the form page.
Re: Errors on top of registration form.
Really? Sorry, I am a beginner. I am creating a registration and log in form for my website.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Errors on top of registration form.
Yes, really. If you post both pages (registration and the page it submits to), I can assist you in combining them, and improve your code.