advcomputer
Posts: 68
|
| Posted: 07/06/2007, 1:27 PM |
|
I am starting to use the file upload component and I have one or 2 questions.
When you put the control on a form. it places a fields on your form. Unlike the controls such as Label, Inout, etc, I dont seem to be able to get ot the properties of each field but rather justthe property of the whole control.
So if thats the case then;
1: what are the control name for each of the 3 controls that the component creates
2: How do you map those fileds to the database
Any help would be apprecaited.
Thanks in advance,
Jeff
|
 |
 |
DonB
|
| Posted: 07/07/2007, 7:45 PM |
|
The only field that maps to the database is the filename. As to the field
names, if you load the page and examine the html, you'll see what html
elements are defined and what their names are.
For what it's worth, there's no magic to the CCS fileupload and if you need
special handling of a file upload you may be better off building your own.
The data is accessible in the $_FILES array and the filename is in the
$_POST array. The upload is entirely dealt with by PHP and you can handle
the On Click event of the form button to intercept the data and process it
however you need to.
--
DonB
http://www.gotodon.com/ccbth
"advcomputer" <advcomputer@forum.codecharge> wrote in message
news:2468ea59b9c4fb@news.codecharge.com...
> I am starting to use the file upload component and I have one or 2
questions.
>
> When you put the control on a form. it places a fields on your form.
Unlike the
> controls such as Label, Inout, etc, I dont seem to be able to get ot the
> properties of each field but rather justthe property of the whole control.
>
> So if thats the case then;
>
> 1: what are the control name for each of the 3 controls that the component
> creates
>
> 2: How do you map those fileds to the database
>
> Any help would be apprecaited.
>
> Thanks in advance,
>
> Jeff
> _________________
> Jeff Goldstein
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
|