Hi,
I have some pages that need to be hidden until the user has agreed the T&C's.
The way I thought I'd go about it was to protect the pages so they are hidden.
I've setup a guest member account.
I then tried creating a custom-html form that would contain hidden fields like so
(Field ID's etc taken from the login module output)
but when submitting the form, I get an error page saying 'Forbidden'.Code:<form id="tl_login" method="POST" action="some protected page"> <input type="hidden" value="tl_login" name="FORM_SUBMIT" /> <input type="hidden" value="guestlogin" name="username" id="username" /> <input type="hidden" value="guestlogin" name="password" id="password" /> <input type="hidden" value="1" name="autologin" id="autologin" /> <input type="submit" value="I agree to the Terms & Conditions" /> </form>
Anyone know how I can make this a valid login form? I don't want the user to have to type anything, only click the agree button.
Thanks


Reply With Quote
Bookmarks