Page 1 of 1

Re: Problem: Compiling PHP on local PC

Posted: Wed Aug 14, 2002 1:26 pm
by Jay
Try

Code: Select all

<?php
Print "<HTML><BODY>";
Print "UserName: ".$_POST['signUserName']."<BR>";
Print "Password: ".$_POST['signPassword']."<BR>";
Print "</BODY></HTML>";
?>

Read up on Super Global Arrays to find out what you're missing!

The script will send mail if you set up your mail server address correctly. And you can use cookies on your local PC, but they'll only be effective on your local PC!

Re: Problem: Compiling PHP on local PC

Posted: Wed Aug 14, 2002 11:07 pm
by WiZARD
In a future try use like this:

Code: Select all

<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>


this code faster....

Re: Problem: Compiling PHP on local PC

Posted: Wed Aug 14, 2002 11:48 pm
by DoppyNL
WiZARD wrote:In a future try use like this:

Code: Select all

<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>

this code faster....


Code: Select all

<HTML><BODY>
UserName: <?php=$signUserName?><BR>
Password: <?php=$signPassword?><BR>
</BODY></HTML>


My best guess is that this would be even faster following you're reasoning.

allthough my experience is that there is almost no noticeable speed-difference. I tend to look at readability of the code, if the code would become VERY unreadable for the programmer, then something has to be done about it. It's not only the speed of the script running that counts, also the speed in wich the programmer can modify the script in the future.

Greetz Daan