Some real noob help need.
Posted: Tue Aug 27, 2002 5:28 am
Sorry about asking a noob question again.
First things first, I am running the PHPDev Kit which has Apache 1.3.20 and PHP 4.06 inside. I am running this on win 98 on my laptop and XP Pro on my Desktop. The question is do I need to have PWS running as well on my win98 machine. The reason why, I have made a form just to submit a First name (told you I am a noob), every time I submit the form I get a blank page on my results page. I have tried using print $variable and also tried the latest update $_POST or $_GET, both have the same result.
Below is the code for the form and the results. I have looked in the PHP manual and copied directly across but same results.
As I said I am a complete noob at php so bare with me please.
BTW No settings change on the PHPDev kit.
For form.
For Results
First things first, I am running the PHPDev Kit which has Apache 1.3.20 and PHP 4.06 inside. I am running this on win 98 on my laptop and XP Pro on my Desktop. The question is do I need to have PWS running as well on my win98 machine. The reason why, I have made a form just to submit a First name (told you I am a noob), every time I submit the form I get a blank page on my results page. I have tried using print $variable and also tried the latest update $_POST or $_GET, both have the same result.
Below is the code for the form and the results. I have looked in the PHP manual and copied directly across but same results.
As I said I am a complete noob at php so bare with me please.
BTW No settings change on the PHPDev kit.
For form.
Code: Select all
<HTML>
<HEAD>
<TITLE>HTML Form</TITLE>
<HEAD>
<BODY BGCOLOR="#000000">
<FORM ACTION="HandleForm.php" METHOD=POST>
<FONT COLOR="FFFFFF""> First Name <INPUT TYPE=TEXT NAME="FirstName" Size=20><BR>
<INPUT TYPE=SUBMIT NAME="Submit" Value="Submit!">
</FORM>
</BODY>
</HTML>Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Form Result</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
print Your name is $FirstName.<BR>\n;
?>
</BODY>
</HTML>