Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2007, 11:41 AM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP Querystring Problem

I have a querystring being passed from Flash to a PHP file.

page.php?var1=foo&var1=foo&var2=john

I've tried endless ways of getting the array of var1 into a loop with no luck. I can pull one var1 but not the others being passed via querystring.

Ultimately, I'd change the SWF file to load the var into a proper array format but cannot change it as I don't have access to the original FLA.

So, is there a way in PHP to load var1 and it's many variables into a loop for print or echo?

I realize it's probably something simple but I've been up for TOO long.

 
Old May 16th, 2007, 07:47 AM
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try using the following code and check the output

print_r($_GET);
print_r($_POST);

if you see the var1 in the output , it means then it has been passed to the page.

Zerone
www.chatbazaar.com
directory.chatbazaar.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Querystring kaustic Beginning PHP 1 November 2nd, 2007 01:42 AM
QueryString Problem mims1979 Beginning PHP 3 January 10th, 2005 08:06 PM
Problem with Request.QueryString mg1966 Classic ASP Databases 4 January 7th, 2005 02:04 PM
querystring problem -Dman100- Classic ASP Professional 10 September 15th, 2004 09:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.