PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 November 21st, 2004, 04:26 PM
PoorDoggie PoorDoggie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 40 PoorDoggie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
php + xitami

Hi I have php and xitami. I installed php (i think - its my first time using a server and php!). I want to use php files that work with post and send forms ie:
php Code:
Original - php Code
  1.  
  2. <?php
  3. while(!$_REQUEST['var'])
  4. {
  5.     echo "You did not click on a button... please click below...<br>";
  6.     ?>
  7.         <form method=send action=whileloop.php><input type="submit" name="var" value="1"><input type="submit" value="2" name="var"></form>
  8.     <?php
  9.     exit();
  10. }
  11. echo "You clicked on button".$_REQUEST['var'];
  12. ?>


But this dosen't work. It just goes back to displaying the two buttons. Also the post thing won't work either!

Can anyone help?

Reply With Quote
  #2  
Old December 7th, 2004, 05:50 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: php + xitami

change your method=send to method="post"

Then using superglobals ($_POST and $_GET) instead of $_REQUEST. In your case since you are using method="post" use $_POST['var'].

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > php + xitami


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 4 hosted by Hostway