Registration Form Works but shows error

Registration Form Works but shows error

I made a registration form. it actually works but it shows the Failed To Register, Try Again message. Heres my code. HTML and PHP DOCTYPE html html head titleRegistertitle head body form action methodPOST h3Registerh3 Username: input typetext nameunamebr Password: input typepassword namepassbr input typesubmit namebtn form body html php if isset_POSTbtn username _POSTuname; password _POSTpass; mysql_connectlocalhost,root,; mysql_select_dblogin2; query INSERT INTO users VALUES ,username,password; mysql_queryquery; echo Registered Successfully; else echo Failed To Register, Try Again;

You can check the post. if _SERVERREQUEST_METHOD POST Also add uname and pass control.

php if isset_POSTuname empty_POSTuname isset_POSTpass empty_POSTpass username _POSTuname; password _POSTpass; ............................ else echo Failed To Register, Try Again;

Комментарии

Популярные сообщения из этого блога

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

FillChar and StringOfChar under Delphi 10.2 for Win64 Release Target

Python Selenium - How to configure a client certificate file while initializing PhantomJS driver instance