XUpload - Handling "Comment" Field Variable

Message
Author
parsa28
Posts: 2
Joined: Sep 05, 2007 2:39 pm

Handling "Comment" Field Variable

#1 Postby parsa28 » Sep 05, 2007 2:43 pm

Hey there,
I'm new to this fantastic thing (Still on FREE Version)
I don't know Perl CGI so much and I was wondering how does the "comment" form field input text passes through the CGI script. If anyone could help ... ThX in advance =)

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Sep 06, 2007 8:18 am

You can use this post.php code to view POST variables names and values:

Code: Select all

<?

  echo "Here you can see what files were processed and what file information you can get from XUpload<br><br>";

  foreach($_POST as $key => $value){
	   echo "$key => $value<br>\n";
  }

?>

parsa28
Posts: 2
Joined: Sep 05, 2007 2:39 pm

Another Question !

#3 Postby parsa28 » Sep 06, 2007 9:49 am

Hey PilGrim, Thanks.
I've got the Pro version now :)
I have another question to ask. I am making an ajax file list. When the user clicks the upload button i have a popup-like div that will be upload_form_tiny2.html with some extra fields. Now the problem is that i do not want any refresh and i want to handle an ajax request after the upload is done. so the upload form fields should be passed to a php script through a session or get method ... and then a new row should be added to my MySQL DB(No problem here). How can I Do the ajax request after upload ?! (Instead of redirecting) ThX in Advance !