Alex,
if I wanted to pre-process some of the data sent from an add form (admin or user) before putting the fields in the database, where would I do that?
Let's say I have a field "Timage" and I want to process it to get (or verify) the ht/width of it before inserting it. Those fields in the table are THeight and TWidth
Where in the routine would I go to verify them, and how would I pull them out --
for example, my "URL" is really a link to an image, and $TImage is it's thumbnail. The following code needs to go into the ADD and MODIFY code somewhere, I'm just not sure where.
$TImage = &process_image($URL); ## Check for and if necessary create Thumbnail
$TWidth = &Image_Width($TImage); ## get width and assign to database
$THeight = &Image_Height($TImage); ## get height and assign to database
Thanks...
Robert
[This message has been edited by pugdog (edited July 20, 1999).]
if I wanted to pre-process some of the data sent from an add form (admin or user) before putting the fields in the database, where would I do that?
Let's say I have a field "Timage" and I want to process it to get (or verify) the ht/width of it before inserting it. Those fields in the table are THeight and TWidth
Where in the routine would I go to verify them, and how would I pull them out --
for example, my "URL" is really a link to an image, and $TImage is it's thumbnail. The following code needs to go into the ADD and MODIFY code somewhere, I'm just not sure where.
$TImage = &process_image($URL); ## Check for and if necessary create Thumbnail
$TWidth = &Image_Width($TImage); ## get width and assign to database
$THeight = &Image_Height($TImage); ## get height and assign to database
Thanks...
Robert
[This message has been edited by pugdog (edited July 20, 1999).]