Hello all -
I'm trying to figure out how to retrieve path info from a referring page. For example:
I have an entry form at: http://www.mysite.com/dept/accounts/edit.html
This form POSTs to a PHP script at: www.mysite.com/php/edit.php
This script checks the entries for data and the user can confirm by clicking Save button on the subsequent output page. If confirmed, then this script POSTs to another script, in the same PHP directory, called save.php.
All is fine so far, but now I want SAVE.PHP to write the data to a file in: http://www.mysite.com/dept/accounts/
SO what I'm trying to do is pass the above path info to the SAVE.PHP script as a variable so it writes the data in that directory. I need this flexibility because there will be other directories that will have their own file and set of data but will use the same PHP scripts...
Make sense? Sorry but I'm a bit green.... :-(
TIA!
Paul