General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 17th, 2003, 09:29 PM
jwfc jwfc is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 14 jwfc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help With Polls

hi. i'm kind of new to this whole php/mysql stuff. i read the devarticle by mitchell on polls, but it does not work for me. when i try to add a new poll, i input a question, and at least two answers, but i always get the two errors about not entering a title and not entering at least two questions. i'm wondering if maybe my information is not getting passed to the function somehow. but i used his script exactly. i am using my friend's web space, and when i input information using forms, i need to do something like:
$question=urlDecode($HTTP_POST_VARS["question"]);
to get the value of the variable question on the previous page. so i'm wondering if something like that is the cause of my problem or something entirely different. i have tried using that type of code for the variables $question and $answer1-5 before and after the global declaration but i still get the same errors.
any help or referral to maybe a different tutorial would be great. thanks.

oh and does anyone know what:
global $HTTP_GET_VARS
means?

Thanks again.

Last edited by jwfc : July 17th, 2003 at 09:31 PM.

Reply With Quote
  #2  
Old July 17th, 2003, 10:04 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Quote:
oh and does anyone know what:
global $HTTP_GET_VARS
means?

$HTTP_GET_VARS is not a an autoglobal variable like $_GET is. These variables contain the same information, however, $HTTP_GET_VARS is available in PHP versions before 4.1.0 where $_GET is not. Use $HTTP_GET_VARS for compatibility with older versions of PHP.

Anyhow, $HTTP_GET_VARS is not automatically in the global scope, so to make it work inside a function you must put it into the global scope using the global construct.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Help With Polls


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 2 hosted by Hostway
Stay green...Green IT