Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello Richard, that is exactly what I was looking for. thanks alot Paul, I didn't know its possible to use error_reporting(), that's a good hint thanks. btw if you guys know any simple php application that I can study and learn faster than going through books please let me know. I tried Wordpres

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Paul M Foster
On Mon, Jul 27, 2009 at 09:01:16PM -0700, Richard S. Crawford wrote: > >> > >> username : > >> password : > >> > >> > >> > >> >> $user=$_POST['user']; > >> $pass=$_POST['pass']; > >> if(($user=="myname")&&($pass="mypass")) > >> echo "access granted"; > >> else > >> echo "access denied"; > >

Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Richard S. Crawford
>> >> username : >> password : >> >> >> >> > $user=$_POST['user']; >> $pass=$_POST['pass']; >> if(($user=="myname")&&($pass="mypass")) >> echo "access granted"; >> else >> echo "access denied"; >> ?> >> >> getting "Notice: Undefined index: user" and "Notice: Undefined index: pass". >> changin

Re: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Bastien Koert
On Mon, Jul 27, 2009 at 10:31 PM, A.a.k wrote: > Hello > I have a very simple test form named "pass.php"  : > > > username : > password : > > > > $user=$_POST['user']; > $pass=$_POST['pass']; > if(($user=="myname")&&($pass="mypass")) > echo "access granted"; > else > echo "access denied"; >

[PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello I have a very simple test form named "pass.php" : username : password : getting "Notice: Undefined index: user" and "Notice: Undefined index: pass". changing form action to another page will solve the problem but i want to be able to use $_POST array on the same page, how can i d