$_Post Related Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chandee77
Forum Newbie
Posts: 1
Joined: Wed Aug 29, 2007 4:27 am

$_Post Related Error

Post 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]
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post 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
User avatar
xpgeek
Forum Contributor
Posts: 146
Joined: Mon May 22, 2006 1:45 am
Location: Kyiv, Ukraine
Contact:

Post by xpgeek »

Add checking for erros in you code.
Post Reply