php - Cannot get POST variables -


i have php file posting variables same page not working.

here snippet of page.

<?php session_start(); require_once 'connect.php'; require_once 'protect.php';  //$_session['uid'] = 1;  if(isset($_post['shout']))       echo 'posted'; if(isset($_post['submit']))       echo 'posted'; ?>  <form method="post" action="">         <input type="text" name="shout">         <input type="text" name="name">         <input type="submit" value="shout!"> </form> 

<input name="submit" type="submit" value="shout!"> 

name attribute missing


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -