Wrox Programmer Forums
|
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:36 AM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP Querystring

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 November 2nd, 2007, 01:42 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

you can access passed value using following statement
for get method
echo $_GET['var1'];

for post method
echo $_POST['var1'];

I am posting for those who have just started php programming.
urt





Similar Threads
Thread Thread Starter Forum Replies Last Post
using querystring melkin Classic ASP Basics 7 April 1st, 2008 09:07 AM
PHP Querystring Problem kaustic Beginning PHP 1 May 16th, 2007 07:47 AM
Querystring or not? myself Classic ASP Basics 4 July 4th, 2006 09:01 AM





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