Page 1 of 1

My php site is not working in my server

Posted: Wed Feb 03, 2010 11:51 pm
by dildhilip2003
Hi All,

Am very new to php, somebody please help me.

i hve a php site and its working fine in my local host (xamp).

But when i hosted my site to my server, user login and new user registration is not working. I hve xamp in my server also.

here is the link : http://212.227.137.184/tim-test_03-02-10/

user id: test1
pass : test1

or else u can try to recreate a new user,

i hve attached my php code for your review.
tim_04-02-10.zip
(6.58 KiB) Downloaded 2 times
i will be very thankfull for your kind help. somebody please help me.

Thanks in advance

Re: My php site is not working in my server

Posted: Thu Feb 04, 2010 12:33 am
by shafiq2626
Hi!
your login module is working
but printing some code on your page i think you should write your code as below

in loginck file

Code: Select all

print "self.location='index.php'"; // Comment this line if you don't want to redirect
          print "</script>";
 
                } 
        }   
    else {
 
        session_unset();
echo "<font face='Verdana' size='2' color='red'>Wrong Login. Use your correct  Userid and Password and Try</font> <br><center><input type='button' value='Retry' onClick='history.go(-1)'></center>";
        
    }
please check