sending POST variables with header()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mlecho
Forum Commoner
Posts: 53
Joined: Wed Feb 02, 2005 9:59 am

sending POST variables with header()

Post by mlecho »

how do you send POST variables with a header(Location: ...) method? I am trying to redirect a page, but i want to send some variables that were posted to that page with the re-direction...any ideas?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

You cannot send post variables simply using a header(), you can send get variables however.

If you do need to send post, take a look at cURL.
Post Reply