
September 10th, 2002, 08:19 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
%^# nothing works. I'm going to explode.
I am SICK of this.
Even the most simple scripts, HTML forms that are supposed to return data through PHP, screw up. IS IT THAT HARD TO PRINT A VARIABLE I *JUST* ENTERED NOT TWO SECONDS AGO!?
Even copy/pasting script examples from "expert" coders make my server barf. WHAT THE HELL AM I DOING WRONG?
Here's an example of a script that refuses to work on my server:
HTML filename: bwf.html
php Code:
Original
- php Code |
|
|
|
<html> <head> <title>My Form</title> </head> <body> <form action="bad_words.php" method=post> My name is: <br> <input type="text" name="YourName"> <p> My favorite dirty word is: <br> <input type="text" name="FavoriteWord"> <p> <input type="submit" name="submit" value="Enter My Data!"> </form> </body> </html>
bad_words.php
php Code:
Original
- php Code |
|
|
|
<html> <head> <title>Perv!</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p> Hi <?php print $YourName; ?> <p> You like the word <b> <?php print $FavoriteWord; ?> !?! </b> <p>You oughta be ashamed of yourself! </body> </html>
Taken straight from Webmonkey.com. Copy/pasted, after mine didn't work. I still get an undefined variable message.
If this doesn't start working soon, my server is going out the window. >:-(
|