[PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello I have a very simple test form named pass.php : form action=pass.php method=POST username : input type=text name=user br / password : input type=password name=pass br / input type=submit value=gop /form ?php $user=$_POST['user']; $pass=$_POST['pass']; if(($user==myname)($pass=mypass))

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

2009-07-28 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

[PHP] clean url problem .htaccess

2009-08-01 Thread A.a.k
Hi I'm trying to use clean urls in my application: lets say convert http://mysite/article.php?id=3 to http://mysite/article/3/ my problem is to use /article act as it was /article.php here is mt .htacess : FilesMatch ^article$ ForceType application/x-httpd-php /FilesMatch on php code parsing

Re: [PHP] clean url problem .htaccess

2009-08-01 Thread A.a.k
what if I don't have access to server to enable mod_rewrite like a hosting, is there anyway to work around? just don't want to build entire website and finally can't get a hosting to enable mod_rewrite for me. Andrew Ballard aball...@gmail.com wrote in message

[PHP] how to check function's execution?

2009-09-07 Thread A.a.k
hello I have a problem to check whether a function successfully inject to database or not, here is the code : if($object-dbupdate()) echo 'done'; else echo 'damn!'; inside the 'if' statement $obj-dbupdate() doesn't execute , how can I execute and check if it was a successful

[PHP] header problem

2009-09-10 Thread A.a.k
hello I recentrly uploaded my project from localhost to a hosting and found many errors and warnings which didnt have in local. one of the most annoying one is header('Location xxx'). I have used header to redirect users from pages, and kinda used it alot. i know about the whitespace causing

Re: [PHP] header problem

2009-09-10 Thread A.a.k
of your code, and ensure that all of your logic that could result in a header call is run BEFORE you send any html code. Is going to be tricky if mixing html and php calls. George On 10-Sep-09, at 12:27 AM, A.a.k wrote: hello I recentrly uploaded my project from localhost to a hosting