Hi, When I try to upload and insert into my database, the page does not redirect. Instead, it just shows random gibberish each time. Like this:
‹QÁNÃ0ý•(—m‡5mÙà@Û“@&Α×dmDšDST¾ž¬ã2MH\,ÛÏï=Ë.:ìuU¬˜ªâh‡ž@ƒÊš’bæÓ'®s”ô;+Jº«ß)1ÐË’Š¯ï§-ˆ]dQ¢ÄU«*”qçk~§¤ü¨´œ3Jprì”ÒP2‚±ô0ʈ±K…×ÿÇga^óº¤4¼î,ò<Ͷëôfßq@žåIºM6ß¿$δWfz…ËÕ}Á΂Qÿü6?é A;¤«
The file gets uploaded, and there is an entry in the database. I just don't know why I'm getting this instead of the redirect page.
Here is the form on my page, it's very simple. Can someone please help?
<?php //********************** // DwZone Upload Resize //********************** require_once("dwzUpload/dwzUpload.php"); require_once('Connections/netlocal.php'); ?> <?php //************************** // INSERT RECORD UPLOAD // http://www.DwZone-it.com // Version: 1.3.12 //************************** set_time_limit(5400); $upload = new dwzUpload(); $upload->SetProgressBar(""); $upload->SetTempFolder(""); $upload->SetTotalFileSize(""); $upload->SetRedirectUrl("thanks.php"); $upload->SetFiles("/uploads;1;;;;1;csvName;1;;;;0;;;;;1;;1;fileField@_@_@0@_@_@php@_@_@0;;;80;0;;;80;0;_small;0;0;0;;;80;0;_small;0@_@_@./@_@_@POST"); $upload->SetFormName("form1"); $upload->SetUploadType("insert@_@netlocal"); $upload->SetValueToRedirectSend(""); $upload->SetDbParam($hostname_netlocal, $database_netlocal, $username_netlocal, $password_netlocal); $upload->SetEditTable("csvuploads"); $upload->SetFields("dothis|value"); $upload->SetColumns("doThis|text"); $upload->Execute(); ?> <!doctype html> <html> <head> <?php //********************** // DwZone Upload Resize //********************** require_once("dwzUpload/dwzUploadClient.php"); ?> <meta charset="UTF-8"> <title>Untitled Document</title> </head>
<body> <form ACTION="<?php echo $upload->GetEditAction(); ?>" onsubmit="return ProgressBar()" method="post" enctype="multipart/form-data" name="form1" id="mycsvform"> <?php //***************************** // DwZone Upload Resize // This code must be the first // code after the FORM open tag //***************************** $upload->GetProgressBarField(); ?> <label for="fileField">File:</label> <input name="fileField" type="file" id="fileField" onChange="dwz_setEvent(this,'change')" onClick="dwz_setEvent(this,'click')"> <input name="dothis" type="hidden" id="dothis" value="true"> <input type="submit" name="dwzSubmit" id="dwzSubmit" value="Submit"> <input type="hidden" name="dwzUpload" id="dwzUpload" value="form1" /> </form> </body> </html>
|
|
|