PHP Isset issue

I don’t know why the code below isn’t printing as it should.


<h1>Enter your name</h1>

//way to tell if the form has been submitted (If form not submitted, display form again.)
if (!isset($_post['yourCity'])){


	<form method="post" action="" />
	<input type="text" name="yourCity" />
<input type="submit">

//Process input

// Retrieve information from form submission.

$city = $_POST['yourCity'];
echo "Your city $city";

I believe its as simple as your lowercase $_post in your if?


I think the recommended way to check if the form has been submitted is


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.