The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Admin Login Page: Change form action to an absolute URL? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Admin Login Page: Change form action to an absolute URL? (/showthread.php?tid=991) |
Admin Login Page: Change form action to an absolute URL? - michatmaster7 - Dec 20th, 2010 Ok, so I admit I haven't learned PHP yet and I'm baffled that the index.php code can generate the admin login page to FormTools. In the source code of the login page, the form code reads: Code: <form name="login" action="/formtools/index.php" method="post"> Is there anyway I can get the action URL to be absolute? I'd like to have it read the entire URL using the HTTPS protocol. Thanks! Brandon RE: Admin Login Page: Change form action to an absolute URL? - azparrothead - Dec 24th, 2010 Not sure if this will provide what you are looking for! http://forums.formtools.org/showthread.php?tid=947 RE: Admin Login Page: Change form action to an absolute URL? - Ben - Dec 26th, 2010 Hi Brandon, Is your $g_root_url value set to https:// ? (check your /global/config.php file to see). I'd have thought that that would work okay... Or are you going to the non-secure version of the page then trying to log in? - Ben RE: Admin Login Page: Change form action to an absolute URL? - Ben - Dec 26th, 2010 Hi Brandon, Is your $g_root_url value set to https:// ? (check your /global/config.php file to see). I'd have thought that that would work okay... Or are you going to the non-secure version of the page then trying to log in? - Ben RE: Admin Login Page: Change form action to an absolute URL? - michatmaster7 - Dec 26th, 2010 Ben - The config.php line reads: Code: $g_root_url = "https://www.mydomainname.com/formtools"; I also have an .htaccess file in that directory, forcing all files and pages to use the HTTPS protocol. I'm not sure how to explain this, but... when you visit the login page in a browser and view the source code from the browser, that's where I can see the action of the login form. Is there any way to make that an absolute URL, using my HTTPS protocol? I can't figure out where the PHP code generates a form on that page. (Probably because I can't read PHP yet). RE: Admin Login Page: Change form action to an absolute URL? - Ben - Dec 30th, 2010 Hi Michat, The only way to get it to show a hardcoded URL would be to edit this file: [form tools root]/themes/default/index.tpl And manually change the action from {$samepage} to your URL. Let me know if that fixes it. - Ben RE: Admin Login Page: Change form action to an absolute URL? - michatmaster7 - Dec 31st, 2010 Beautiful! That worked like a charm. I actually left the {$query_params} section in the code, because you didn't mention that. So it looks like: Code: <form name="login" action="https://www.mydomainname.com/formtools/index.php{$query_params}" method="post"> Thank you so much Ben! Ok, now I'm off to learn PHP and find out what a .tpl file is for and learn how all this nonsense works Wish me luck! Brandon RE: Admin Login Page: Change form action to an absolute URL? - ChristineSRogan - Feb 28th, 2020 Nice detail about the Admin Login Page: Change form action to an absolute URL? you are the best to provide this detail to the people who need this. Also, the australian writings tells us the ideas that no other can provide with such a detail. RE: Admin Login Page: Change form action to an absolute URL? - CarolineWebb - Aug 10th, 2020 Our talented team of professional personal statement writers craft your well-structured psychology personal statement http://www.personalstatementfolks.co.uk/psychology-personal-statement/ UCAS guideline follow carefully. |