I_Love_My_Vans
Mar 14th, 2008, 12:26 PM
Hello!
Heres what I am doing.
I have a form, it takes infor from use, including some images (important), it posts the variables back to the same page where they are picked up.
When this has been done before all the code is kept in the same page, but I am now going OOP and starting to use classes, its working really well, but it wont for some reason let me post the $_FILES['small_img'] to the class.
c0d
$product->setAddProduct($_POST['title'], $_POST['category'], $_POST['description'], $_POST['stock'], $_POST['price'], $_FILES['small_img'], $_FILES['large_img']);
Thanks :)
Heres what I am doing.
I have a form, it takes infor from use, including some images (important), it posts the variables back to the same page where they are picked up.
When this has been done before all the code is kept in the same page, but I am now going OOP and starting to use classes, its working really well, but it wont for some reason let me post the $_FILES['small_img'] to the class.
c0d
$product->setAddProduct($_POST['title'], $_POST['category'], $_POST['description'], $_POST['stock'], $_POST['price'], $_FILES['small_img'], $_FILES['large_img']);
Thanks :)