By: Xo
Date: 2005-03-18
Time: 10:21
|
newbies:form upload
I'm newbies in php&tbs,
I'll to upload file using html form :
<input name="x_name" type="file" class="normal" id="x_name2" value="[var.x_name]">
$x_name = $_POST['x_name'] only contains filename without path ...
and
move_uploaded_file($x_name, $uploadfile);
do no thing ?
Help please :)
|
By: Xo
Date: 2005-03-18
Time: 10:54
|
Re: newbies:form upload
... I forgot to define my form
enctype="multipart/form-data"
But now he tells me :
TinyButStrong Error (Merge PHP global variables): Can't merge [var.x_name] because there is no PHP global variable named 'x_name'.
What's wrong ?
|
By: Skrol29
Date: 2005-03-18
Time: 11:41
|
Re: newbies:form upload
Hello,
The message error occurs because when TBS try to merge [var.x_name], the global variable $x_name is not created.
This can be cause you create $x_name after the Show() method, or because $x_name is coded inside a function, so it is not global but local.
|
|
Posting in progress.
Please wait...
|