Problem: Compiling PHP on local PC

A

Anonymous

Guest
Try
Code:
<?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!
 
In a future try use like this:
Code:
<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>

this code faster....
 
WiZARD said:
In a future try use like this:
Code:
<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>
this code faster....

Code:
<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
 
Back
Top