Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
variable iteration retrieval issue php4.0.4
Old 07-05-2005, 11:47 PM variable iteration retrieval issue php4.0.4
Junior Talker

Posts: 1
Trades: 0
Hi,
I will try my best to make this question brief. I am constructing a form dynamically, and the number of input fields change. In the past I have used a loop to add a digit to the name of each input (i.e. name1, name2, name3...) Then another loop to retrieve those named variables (i.e. for ($i=1, ... blah blah { if( isset($_POST['name$i'])). That works fine in the newer versions of PHP. But alas, the host for my client's web site is using PHP version 4.0.4. YAY!

No $_GET. No $_POST. And you can't use if (isset($name$i). That just don't fly.

Any suggestions?
lusus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2005, 09:12 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Use $HTTP_POST_VARS and $HTTP_GET_VARS in place of $_GET and $_POST.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to variable iteration retrieval issue php4.0.4
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12152 seconds with 12 queries