Page 1 of 1

$_Post Related Error

Posted: Wed Aug 29, 2007 5:07 am
by chandee77
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hay..Friends,
I'm bit new to PHP and I do project with PHP
I Used following cod segment to validate user name and Password,
It work earlier.After some time(I do some other jobs) It is not working,
the" $_POST["User Name"];"  just pass null.
''''''''''''''''''''''''''''

Code: Select all

$Uname=$_POST["User Name"];
$conn=odbc_connect('login','sa','1234');
if (!$conn)
  {exit("Connection Failed: " . $conn);}
$sql="SELECT password,Username FROM Users where Username='$Uname'" ;
$rs=odbc_exec($conn,$sql);
'''''''''''''''''''''''''''''''''''''''''''''''''''
Could anybody same me..Please.


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Aug 29, 2007 6:24 am
by vinoth
check the values corretly

What name you assign for the username text field..

othewise assign the name without spaces.

or paste the html code for more clarifications

Posted: Wed Aug 29, 2007 8:48 am
by xpgeek
Add checking for erros in you code.