Notice: Undefined variable: action in c:\inetpub\wwwroot\login.php on line 3
okie..what's wrong with it? i cant get it running.
I am currently {
| |
| |
}
=========================
Intel P4 1.5 Ghz
Intel D850GB MOBO
256MB PC 800 RDRAM
20GB Maxtor HDD (5400 RPM)
40GB Maxtor HDD (7200 RPM)
52X Creative CDROM
8X4X32 Creative CDRW
16X ASUS DVD ROM
Iomega 100 MB USB Zip Drive
SYBA Ultra ATA IDE controller card
SB live 5.1 DE
Aging Gainward 64MB GF2MX400 --> | Upgrading to GF4 Ti4 series |
Altec Lansing ACS 56
Dlink D538TX NIC
=========================
Code:
<?php
if($action == "setcookie")
{
setcookie("visitorname", $visitorname, time() + 3600);
}
if(isset($visitorname)):
?>
Welcome <B><? echo $visitorname ?></b>
<? else: ?>
<form>
<input type ="hidden" name="action" value="setcookie">
Welcome, you name please <input type="text" name="visitorname"><br>
<input type="submit" value="OK">
</form>
<? endif; ?>
okie..what's wrong with it? i cant get it running.
I am currently {
=========================
Intel P4 1.5 Ghz
Intel D850GB MOBO
256MB PC 800 RDRAM
20GB Maxtor HDD (5400 RPM)
40GB Maxtor HDD (7200 RPM)
52X Creative CDROM
8X4X32 Creative CDRW
16X ASUS DVD ROM
Iomega 100 MB USB Zip Drive
SYBA Ultra ATA IDE controller card
SB live 5.1 DE
Aging Gainward 64MB GF2MX400 --> | Upgrading to GF4 Ti4 series |
Altec Lansing ACS 56
Dlink D538TX NIC
=========================