https://www.icyphoenix.com/viewtopic.php?f=35&t=8875&p=57945#p57945
-----------------------------------
mort
Sat 05 Jan, 2013 14:15

Re: How Do I Check If A User Is Logged In ?
-----------------------------------
There are not too many things that will send you to the wrong place, so if I'm not wrong - [i]And I usually am.[/i] :(

1. You don't have the redirect set properly.

2. The form action is wrong in either the php file or the template.

Here's an example using album_upload.php.
[code linenumbers=false]
album_upload.php

S_ALBUM_ACTION' => append_sid(album_append_uid('album_upload.' . PHP_EXT . '?cat_id=' . $cat_id)),

album_upload_body.tpl

<form name="upload" action="{S_ALBUM_ACTION}" method="post" enctype="multipart/form-data" onsubmit="{S_ON_SUBMIT}">[/code]


