Form form upload image-submitted to the PHP method, after successful want to return some values, but the foreground is always unable to get the parameter value. Urgent!!!
Source: Internet
Author: User
KeywordsPHP picture Form Upload
PHP picture Form Upload
form part code: To implement the form submission page does not jump.
Php Method: Image upload success or failure, want to return the image of the path and error messages. The pass-through method is as follows $cardnoimg = $destination _folder; --Picture path $smarty->assign (' cardnoimg ', $cardnoimg); --Incoming DWT template page $smarty->assign (' mag ', $mag); --Error message incoming DWT template page Now there are two problems. 1: I want to use JS to get the picture path, and assign a value to a hidden text box. So where should this approach be written? Isn't it appropriate to write in the OnSubmit method of the form? 2: That is how I write PHP to let the DWT template read these values? I am a rookie, please the great God detailed description.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.