You are here: Re: new to php « All PHP « IT news, forums, messages
Re: new to php

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация