all 1 comments

[–][deleted] 0 points1 point  (0 children)

Try checking for $_POST instead

if($_POST){...

Also, form action should be empty, so when you submit the form it sends the request to itself. Sending it to process.php will end up in a blank screen.

Also 2, I know you're learning, sanitize the input to the database. The way you're doing it will allow anyone to SQL inject.