note 49799 modified in features.file-upload by danbrown

From: Date: Sun, 17 May 2009 18:49:35 +0000
Subject: note 49799 modified in features.file-upload by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155180@lists.php.net to get a copy of this message
Just thought I'd add this since I had to search forever to find an answer. When I used the enctype attribute on a form to process a file upload I had a problem redirecting back to an anchor point on the original page my code looked like this on the upload page: header("Location: original_page.php#image_gal"); and the resulting url looked like this: http://www.example.com/original_page.php note the missing anchor reference. So my work around was to pass the anchor point as a variable and then redirect again when I got to the original page. A little bit chunky but it worked. Hope this helps someone. --was-- Just thought I'd add this since I had to search forever to find an answer. When I used the enctype attribute on a form to process a file upload I had a problem redirecting back to an anchor point on the original page my code looked like this on the upload page: header("Location: original_page.php#image_gal"); and the resulting url looked like this: http://www.url.com/original_page.php note the missing anchor reference. So my work around was to pass the anchor point as a variable and then redirect again when I got to the original page. A little bit chunky but it worked. Hope this helps someone. http://php.net/manual/en/features.file-upload.php

« previous php.notes (#155180) next »