php - Upload file from form to remote server and still capture other inputs locally? -


i have form few text inputs , file upload field. it's action remote server file uploaded, hidden field contains redirect url posted remote server. redirects url few parameters in url use $_get receive details file uploaded server.

i need capture other field values before file uploaded, capture response values sent remote server.

i know can use ajax post local php file handle post , use $_post capture input values i'm not able upload file remotely.

my uploadfile.php uses curl. posted form fields ajax doesn't work because of ajax security , remote posting.

$ch = curl_init();  curl_setopt($ch, curlopt_url,$upload_url."&"); curl_setopt($ch, curlopt_post, 1); curl_setopt($ch, curlopt_postfields,             'upload_identifier='.$upload_identifier.'&extra_info='.$extra_info.'&userfile='.$userfile);  curl_setopt($ch, curlopt_returntransfer, true);  $upload_info = curl_exec ($ch); curl_close ($ch); 

is there way let form submit remote server, , capture other fields? maybe have them placed session variables when redirect page loads parameters in url get , work input fields , response remote server?


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -