Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:36:32 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Forms in a strange URL  (Read 599 times)
Gullytrotter

Offline Offline

Posts: 29



« on: January 31, 2008, 02:35:34 PM »

Hi there everyone!

Note: Die URLs in this post do not work. grin

I had a slight problem a while back, getting a form from WB to be displayed through an ssl-proxy. After solving this problem paritally, I am now stuck with a new one...

Ok, I now got the Form to be displayed through the proxy. Without the proxy the form is submitted and sent to my eMail address. Now I just have to get the submission to work through the proxy.

Actually I only think this is a problem with the URL. Unencrypted the form is at
http://www.mysite.com/pages/forms/myform.php
and works fine. This is also the same URL shown in the browser window when the form is submitted.

To tunnel the form through the ssl-proxy I have to slightly change the URL, like so:
https://ssl.myisp.net/www.mysite.com/pages/forms/myform.php
Note that not the entire site is tunnelled through the proxy, only the form itself. I did that by creating a link on another page. This is not an internal WB-link.

The problem is that the URL changes after the form is submitted from what you see above to this:
https://ssl.myisp.net/pages/forms/myform.php
So there is a part missing and this (new) URL doesn't exist.

There are two results:
1. The captcha field is empty. So the user is asked to enter the numbers but doesn't get to see them. Ok, this happens before the submission, but I turned captcha off for now, so this is not my main concern at the moment.
2. The form is never submitted and the user just gets an error message from the server (basicly a 401, but of course the ssl-proxy states that the URL isn't configured).

Now I have been through the view.php several times looking for clues on how to change the URL slightly, so it fits to the proxy. So far without any success. Is there someone who can clue me on this? Can I (re-) set a variable in myform.php to redirect the submission to the correct URL?

Regards,
Christian
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: January 31, 2008, 03:57:53 PM »

Hello,

1.) if captcha is not shown, you should test if gd libraries are available on the server and if no lokal filter (spam, virus, firewall ...) dissallow the showing of small images.

2.) also in advanced form and in the upcoming 2.7 (wich includes the advance form) there are fixed a lot of path issues. So if you don't wanna upgrade, you have to compare this versions and try to implement the working solutions of advanced form.

Matthias
Logged
Gullytrotter

Offline Offline

Posts: 29



« Reply #2 on: January 31, 2008, 07:38:06 PM »

Greetings!

1. Captcha ist not really the issue here, as I have turned it off. But but the problem seems to be connected to the fact that the URL (and therefore the path to the pic) is on a different path that expected. The ssl-proxy is designed to be completely transparent and should not interfere at all with pictures or anything else for that matter.

2. The reason I don't want to install the new form editor is because I fear having to write all the forms again. Is that so or can I keep them?

Regards,
Chris
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #3 on: January 31, 2008, 10:18:15 PM »

Hello,

if you follow the steps on addons page nothing gets lost.

Matthias
Logged
Gullytrotter

Offline Offline

Posts: 29



« Reply #4 on: February 04, 2008, 02:56:32 PM »

Hello again!

Ok, I upgraded to the advanced forms. This solved part of the problem - however not the part that is really bugging me.

Captcha now works. If the user doesn't fill in a required field, then he gets a warning message and can correct his input. Sofar, so good.

But the form still cannot be submitted. When I try to submit the form (through the ssl-proxy) the URL changes and I get my usual error message. Basicly, nothing has changed. And yes, I am sure the new forms are installed. The options look quite different and now captcha works even through the ssl-proxy. And I did create a new form just to make sure.

Is there anyone who can tell me how to tweak the forms a little so they work even if the URL of the page is different than the form expects? See above for details on what I mean.

Regards
Chris
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!