| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Account Closed | 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. 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) | |
| Barru. | Quote:
Its with your META redirect. I dont know what the error IS, but use a php redirect instead: PHP Code:
__________________ | |
| |
| | #4 (permalink) | |
| Barru. | Quote:
You get sent to: http://www.testdumbies.com/Forum/.%20$URL%20.
__________________ | |
| |
| | #5 (permalink) |
| Buy my domains. | PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |