Posted by Zoe Brown on 10/10/05 19:45
"Rauch Christian" <info@rauch-webdesign.de> wrote in message
news:die4s4$8vi$01$2@news.t-online.com...
> Zoe Brown schrieb:
>> argh !! I dont get it this is my entire script - what is wrong with it ?
>> <?php
>>
>> $username="sggdfgfg";
>>
>> $password="xgsdfgyz";
>>
>> if (($_POST['username']==$username) && ($_POST['password']==$password)){
>>
>> header("Location: main.html");
>>
>> }
>>
>> ?>
>
> do you have any whitespaces before '<?php' ? If so, delete them.
nope none there. Fed up now this is my first peice of php. I have set the
login variable in php and used javascript to read it and redirect on the
page onload(). It seems like a hack to me though...
>
> -rauch
Navigation:
[Reply to this message]
|