•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,551 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,566 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2572 | Replies: 2 | Solved
![]() |
I have three question:
1) how can i post a variable which is an array?
2) Lets say i post declare a variable by typing:
[php]$_POST['test'] = 'hello';[/php]
would it transfer that variable to next page.
3) is it possible to post variable with the header command:
[php]header("Location: index.php?Successful=UPDATED&hello=yes");[/php]
into something that can post multiple variable while going to the second page.
1) how can i post a variable which is an array?
2) Lets say i post declare a variable by typing:
[php]$_POST['test'] = 'hello';[/php]
would it transfer that variable to next page.
3) is it possible to post variable with the header command:
[php]header("Location: index.php?Successful=UPDATED&hello=yes");[/php]
into something that can post multiple variable while going to the second page.
Last edited by ashneet : Jul 11th, 2006 at 6:51 pm.
•
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
•
•
•
•
Originally Posted by ashneet
I have three question:
1) how can i post a variable which is an array?
•
•
•
•
Originally Posted by ashneet
2) Lets say i post declare a variable by typing:
[php]$_POST['test'] = 'hello';[/php]
would it transfer that variable to next page.
1) attach it to a query string that is in the url of the new page (i.e. GET)
2) POST it to the new page (like a form)
3) Use cookies to retain the value
4) Use a session to retain the value
•
•
•
•
Originally Posted by ashneet
3) is it possible to post variable with the header command:
[php]header("Location: index.php?Successful=UPDATED&hello=yes");[/php]
into something that can post multiple variable while going to the second page.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- just a quick question! (C++)
- installing more internal speakers (Motherboards, CPUs and RAM)
- Script stores data in wrong MySQL columns (MySQL)
- Need help please as soon as possible (C++)
- header file/ classes (C++)
- Request Header Parsing in Javascript (JavaScript / DHTML / AJAX)
- PHP-Nuke Tutorial #1: Altering the Header Tags (PHP)
Other Threads in the PHP Forum
- Previous Thread: How to make phpBB more interactive?
- Next Thread: I want to let members message each other



Linear Mode