Jump to content

Creating dir, Copy files and pass variables to 2 files


the_kerb

Recommended Posts

My problem:  ???

 

I need to create a folder on the server weekly named by the user.

To this folder copy the contents of an /Original folder.

Inside the new folder edit one of the files to insert a data with a XML path generated in another application, copied (via memory) and pasted within the very first form and passed to the file in question.

 

<param name="FlashVars" value="xmlfile= $lanofile" />

 

the $lanofile is the value that I need to pass from the form to be read by this file.

 

I have created an form (n.php) that POST the name of the folder to a second file (creatdir.php) everything is cool until I have to edit the third file.

 

How can I pass the value of one of the formfileds to a second file and them read this value as a variable to be consumed as mentioned above?

Or actually right whatever is on the third field to this position (not using variables)

 

Any help on this one?

 

Kindly

 

The_kerb

 

Link to comment
Share on other sites

Hi Lumio,

 

thanks for the tip but I believe that I couldn't express myself correctelly.

I understand the functionality of the immense material provide by you but the problem is that I need to right to a variable within a second file, let make easy to you:

 

$variable = whatever posts from the createdir page

 

 

<par name = stuff . $variable>

 

this happens on the second file and I have only one form with 3 fields.

 

it is not a matter of just write into a simple text file.

 

Hop I could explain a little better, sorry for the mess.

 

Thanks

 

Kerb

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.