| | |
POST with header
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread 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 7:51 pm.
•
•
•
•
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!
![]() |
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
Views: 8453 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






