Ranma2k |
01-16-2006 06:06 PM |
accessing Variable
i have a form that sends a file in post mod to my script
my form have the following code
HTML 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
PHP 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 ?!
Quote:
Originally Posted by Ranma2k
i have a form that sends a file in post mod to my script
my form have the following code
HTML 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
PHP 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 ?
|