PHP Help Please!

Status
This thread has been locked.

Nydigov

Feedback score
0
Posts
39
Reactions
11
Resources
0
I am very frustrated please help me I am very big need.

1. Notice Undefined Index. Notice: Undefined index: username in

E:\xampp\htdocs\money\login.php on line 88 Notice: Undefined index: password in
E:\xampp\htdocs\money\login.php on line 89 All My Code is here

http://paste.ofcode.org/QXCNhnBNKQyEwvh9h8X7wv

2. My register form. I have worked super hard on trying to make this and it won't work I am super sad and frustrated. I click register and nothing happens..... It says https://gyazo.com/e1f9c37430e93d56783c814d62e18775

Here is all my code for register.php http://paste.ofcode.org/tHGCZ7CFL2xU8CJcYJR3VJ Please help me. Best regards,
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

GalaxyDZ

Premium
Feedback score
0
Posts
3
Reactions
6
Resources
0
Last edited:

rexs123

Fullstack Software Engineer
Supreme
Feedback score
30
Posts
177
Reactions
365
Resources
0
Take a look at this: https://github.com/daveismyname/loginregister and learn from that; very nice system, modify it to work for your needs or just use it as a reference ;)

NOTE THIS IS NOT MINE! I just have learnt from it. It is an amazing reference.
 

Nydigov

Feedback score
0
Posts
39
Reactions
11
Resources
0
Looking into the file http://paste.ofcode.org/tHGCZ7CFL2xU8CJcYJR3VJ

Have you tried moving PHP to first line?
As the given errors are errors given that the strings it should get in the E-Mail are not there.

I'll try and help solivng this along the way if you'd wish

EDIT:

As stated: http://paste.ofcode.org/Wvg3MSzLft2rJMsMB8FVWj Try this code, may be the fix for the register page errors perhaps?

Could you explain more? What do you mean moving PHP to the first line?
 

GalaxyDZ

Premium
Feedback score
0
Posts
3
Reactions
6
Resources
0
Looking into the file http://paste.ofcode.org/tHGCZ7CFL2xU8CJcYJR3VJ

Have you tried moving PHP to first line?
As the given errors are errors given that the strings it should get in the E-Mail are not there.

I'll try and help solivng this along the way if you'd wish

EDIT:

As stated: http://paste.ofcode.org/Wvg3MSzLft2rJMsMB8FVWj Try this code, may be the fix for the register page errors perhaps?

Could you explain more? What do you mean moving PHP to the first line?

Please, see the edit file.

As for the first error given, it should get the username string out of connect.php as seen in the code:

$username = mysqli_real_escape_string($connect, $_POST['username']);
$password = mysqli_real_escape_string($connect, $_POST['password']);

I am not sure what this error toggled, but if you want that to be fixed you should have a look somewhere in the connect.php file.
Also, look if the connect file is located in the same folder as the code that is giving errors.
 
Status
This thread has been locked.
Top