HTML text field value passed to a php file is null

tatSleceBoodo

New Member
I have an html code that passes the values of text fields to a php file. To check for the value of these variables , I use echo to print the values but nothing gets printed.This is my html code:\[code\] <form action="connect.php" type="post"> Username: <input type="text" name = "uname"><br> Confirm Username: <input type="text" name = "cuname"><br> Password: <input type="password" name = "pword"><br> Confirm Password: <input type="password" name="cpword"><br> <input type="submit" value="http://stackoverflow.com/questions/15913921/Sign up"> </div> </form>\[/code\]This is my connect.php code:\[code\]<?php $info1 = isset($_POST['uname']); $info2 = isset($_POST['cuname']); $info3 = isset($_POST['pword']); $info4 = isset($_POST['cpword']); echo $info1; echo $info2; echo $info3; echo $info4;?>\[/code\]
 
Top