0

I'm currently creating a login screen and am having some issues with some the code. I have 4 basic boxes for a user to fill in, username, email, password & confirm password and once they do this they hit submit. But when they do this my browser throws out code from halfway in my php file.

I'm using Wampserver and it's all green and connected fine, the home page loads up as normal too. It's just when they click submit it all goes awry.

I've tried various fixes such as updating my httpd.conf file and checking the apache modules but to no avail.

Any help would be greatly appreciated.

screenshot of issue

Thanks, Mat

mat1986
  • 135
  • 10
  • 1
    All the code is there, just the `` makes an HTML element so it doesn't display. View the source. Do you have PHP installed? Are you using short tags? Without the code the best we can do is link you to the dup. – user3783243 Jan 29 '19 at 16:43
  • No I'm using – mat1986 Jan 29 '19 at 16:45
  • Then your PHP isn't properly configured. If you view source, you'll see *all* of your PHP code there. – ceejayoz Jan 29 '19 at 16:50
  • I understand that it's in the source, but when they click submit, it should say signup successful and store their details in a MYSQL database I've connected, but instead it returns partial code as shown in the screenshot – mat1986 Jan 29 '19 at 16:56
  • Why are you submitting to a `.inc.php` file? That implies it is an *include* and not a whole page. – Quentin Jan 29 '19 at 17:00
  • I have a signup.php file (first screen the user sees) that has an include in it. This is including 'signup.inc.php' where the code is stored based on what action the user performs, in this case entering details to sign up. – mat1986 Jan 29 '19 at 17:04
  • Hi All, just wanted to drop a message to say I solved the issue, I was pointing to the localhost port 8080 which was not the MySQL server port of 3306, in my database connection php file. – mat1986 Jan 30 '19 at 08:32

0 Answers0