| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Nov 2005
Posts: 70
![]() | I have and upload (user only) script that won't work. The script <? define('IN_PHPBB', true); include('extension.inc'); include('common.'.$phpEx); ?> <? // // Start session management // $userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS); init_userprefs($userdata); // // End session management // ?> $URL = ".$phpbb_root_path."login.php?redirect=http://www.testdumbies.com/Forum/submit.php"; if($userdata['session_logged_in']){ $to_echo = <<<EOM hi EOM; echo $to_echo; } else{ echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">' }// that will redirect the user to a login page that will then log them in and send them straight back to the upload page. The error http://www.testdumbies.com/Forum/submit.php it automatically sends people from that page to fast. It should stop and let them upload granted i don't have the actual up load script in there yet. ????: NamePros.com http://www.namepros.com/programming/231479-i-have-upload-user-only-script.html well can anyone help me >< can anyone use whats above to make it so that only users can upload and provide a upload script fo rme >< much appreciated thx. |
| |
| | #2 (permalink) | ||||
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=231479 Its with your META redirect. I dont know what the error IS, but use a php redirect instead: PHP Code: | ||||
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=231479 You get sent to: http://www.testdumbies.com/Forum/.%20$URL%20. | ||||
| |
| | #5 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: |
| |