Hi
I cannot get my head around global variables.
I am running an upload_info.html file which has a form allowing user input (generic team data) and upload a team logo file. This form calls upoad.php
<form action="upload.php" method="post" enctype="multipart/form-data">
using the post method i give the variables a value
$season = $POST["season"];
$tname = $POST["team_name"];
This works fine
In the upload.php file I then have another form which allows the user to upload an image and some info specific to that image (personal data to the image).
<form action="upload_data.php" method="post" enctype="multipart/form-data">
The problem I have is that when this upload_data.php form is called I cannot use the $tname and $season variable values. (I wish to re-use this several times replacing the image and personal data but keeping the generic data\values)
The intention is to show the image with the personal data and also the global data ($tname etc) so the user does not have to resubmit this info.
I would assume that this requires making $tname a global variable but as I said at the top, I cannot seem to get the hang of it.
Please could somebody set me right and remeber I am a newbie so take it easy on me please!!
Cheers
Dave