Re: redirecting some values from one page to other in php

From: Date: Wed, 20 Jul 2005 20:04:44 +0000
Subject: Re: redirecting some values from one page to other in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219072@lists.php.net to get a copy of this message
babu wrote:
It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <matt@matt-darby.com> wrote: babu wrote:
I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html---- where i have a dropdown menu. the user selects the options... this form has a action to file2.php file2.php--- i get the values of the form by using $_POST. In this file i will do some processing on data and redirect to file3.php file3.php---- here i need the user select menu items. i think i can use require_once(file2.php) in file3.php and get the values.But i want to get the values selected by user from html form. Thanks for the help. babu ---------------------------------
Why not just combine all three files into one? So long as you place the form processing code over the actual HTML & PHP code that generates your webpage, all will be fine.. To do this all you need to do is set your form action="" Matt Darby
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail
--------------------------------- Yahoo! Messen
Sorry -- Hit "Reply" instead of "Reply to All" :)
ger NEW - crystal clear PC to PCcalling worldwide with voicemail


« previous php.general (#219072) next »