FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Admin Login Page: Change form action to an absolute URL?
#1
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
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#2
Not sure if this will provide what you are looking for!

http://forums.formtools.org/showthread.php?tid=947
Reply
#3
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
Reply
#4
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
Reply
#5
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).
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#6
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
Reply
#7
Smile 
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 Smile Wish me luck!

Brandon
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#8
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.
Reply
#9
Our talented team of professional personal statement writers craft your well-structured psychology personal statement http://www.personalstatementfolks.co.uk/...statement/ UCAS guideline follow carefully.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)