Hello, I’m new to PHP dev and am playing around with some basic things. I have a simple form that (should) take a submitted email and print a user’s information, retrieved from the db, to the page.
My form code is as follows:
[php]<?php
$page_title = ‘Account management tool mock up’;
include (‘header.html’);
?>
Enter an email address:
<?php include ('footer.html'); ?>[/php]The code at the top of “user_deets.php” is as follows:
[php]<?php
$page_title = ‘User details’;
include (‘header.html’);
require_once (’./scripts/connect.php’);
echo ‘
if (isset($_POST[‘email_submitted’])) {…
…} else {
echo ‘
User not found
}[/php]
All I get on the page is:
Array
User not found
Anyone know what I seem to be doing wrong? Any help is appreciated.