Log in

View Full Version : accessing Variable


Ranma2k
01-16-2006, 06:06 PM
i have a form that sends a file in post mod to my script
my form have the following code


<FORM METHOD=POST ACTION="script.php">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<b>file to Upload:</b><br />
<input class="bginput" type="file" name="upfile" size="30"><input type="hidden" name="do" value="uploadfile"><br />
<input class="bginput" type="submit" value="upload><input class="bginput" type="reset"value="Reset">
</td>
</tr>
</table>
</FORM>


my script.php have the following code



$vbulletin->input->clean_gpc('f','upfile',TYPE_FILE );

$valuea = $vbulletin->GPC['upfile']['tmp_name'];
$valueb = $vbulletin->GPC['upfile']['size'];
$valuec =$vbulletin->GPC['upfile']['error'];


my problem is that all values doen't have a vlaue in it
is there somethign worng ?!

i have a form that sends a file in post mod to my script
my form have the following code


<FORM METHOD=POST ACTION="script.php">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<b>file to Upload:</b><br />
<input class="bginput" type="file" name="upfile" size="30"><input type="hidden" name="do" value="uploadfile"><br />
<input class="bginput" type="submit" value="upload><input class="bginput" type="reset"value="Reset">
</td>
</tr>
</table>
</FORM>


my script.php have the following code



$vbulletin->input->clean_gpc('f','upfile',TYPE_FILE );

$valuea = $vbulletin->GPC['upfile']['tmp_name'];
$valueb = $vbulletin->GPC['upfile']['size'];
$valuec =$vbulletin->GPC['upfile']['error'];


my problem is that all values doen't have a vlaue in it
is there somethign worng ?!

any help ?