SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 10th, 2002, 08:19 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: %^# nothing works. I'm going to explode.

What error message are you getting

Reply With Quote
  #2  
Old September 10th, 2002, 08:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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
  1. <html>
  2. <head>
  3. <title>My Form</title>
  4. </head>
  5. <body>
  6.  
  7. <form action="bad_words.php" method=post>
  8.  
  9. My name is:
  10. <br> <input type="text" name="YourName">
  11.  
  12. <p> My favorite dirty word is:
  13. <br> <input type="text" name="FavoriteWord">
  14. <p>
  15.  
  16. <input type="submit" name="submit" value="Enter My Data!">
  17. </form>
  18.  
  19. </body>
  20. </html>


bad_words.php

php Code:
Original - php Code
  1. <html>
  2. <head>
  3. <title>Perv!</title>
  4.  
  5. </head>
  6.  
  7. <body bgcolor="#FFFFFF" text="#000000">
  8.  
  9. <p>
  10. Hi <?php print $YourName; ?>
  11.  
  12. <p>
  13. You like the word <b> <?php print $FavoriteWord; ?> !?! </b>
  14.  
  15. <p>You oughta be ashamed of yourself!
  16.  
  17. </body>
  18. </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. >:-(

Reply With Quote
  #3  
Old September 10th, 2002, 08:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: %^# nothing works. I'm going to explode.

Sounds like register globals may be off...instead of:

<?php print $YourName; ?>

try:

<?php print $_POST['YourName']; ?>

and the same for the other print....

Reply With Quote
  #4  
Old September 17th, 2002, 01:48 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: %^# nothing works. I'm going to explode.

know exactly how you feel but i will remember you when I get mine going good luck

Reply With Quote
  #5  
Old March 12th, 2004, 04:09 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: %^# nothing works. I'm going to explode.

in you php script you have to $yourname = $_request['yourname'];
this will store the value from your html doc into $you name. Now echo $yourname;

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > %^# nothing works. I'm going to explode.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway