I have a slightly crazy issue that I'm not really sure how to deal with. Here're the details:
I have developed a simple script for a client of mine that collects contact information about their clients, saves it to a database and send an email with these details. I am using PHP and MySQL. I have one file, called send_email.php, which is the form where the data is entered. The form's method is post and action is send.php. The issue is that when I click on the Submit button, I get a "Forbidden" error. When I visit send.php directly, I am not getting this error.
I submitted a ticket to the webhost and after about 36 hours, they finally replied, citing FrontPage extensions and the way they handle POST requests as the issue. They said that the only way to go around this is to either disable the extensions or lower the security (that's all I know, I don't know exactly what settings have to be lowered).
Is this even possible? As far as I know, the host doesn't use any control panels. Any changes to the account have to be done through their ticket system. In any case, returning to the issue: can FrontPage extensions really cause this issue? I've tested on an internal test server, and the issue doesn't exist. I have a feeling that the host is just choosing the simple way out and blaming something that isn't even responsible. I don't know, I never used FrontPage or dealt with FrontPage extensions. On the other hand, the client uses FrontPage fully, meaning that he doesn't want the extensions disabled.
On a side note, I'm pretty sure that this is a Linux account, and I'm a little surprised to find FrontPage extensions on Linux. Of course, I know it's possible, but nonetheless...
Well either the hosting company supports FP extensions or they do not. It sounds like you are not using the FP to create the form - meaning you are not using FP components to process the form. You are using the PHP as the form handler. Right?
If so - would the form work if they removed FP extensions? If not, can you use Fp to create the form & to handle the form?
Thanks for your replies. Personally, I don't use FP at all, and would gladly remove FP extensions. However, my client does use FP and doesn't want the extensions removed.
I am using PHP to handle to POST request, correct. I just spoke to the host, and apparently, FP extensions were, somehow, blocking the POST from going through. They offered me to use GET, but then said that that's not a good idea and is limited in the length of data, which didn't really work for me. So I asked them what the difference between the GET and POST was in terms of the FP extensions. Apparently, it was only a setting for my client's site.
It's now all fixed. All they had to do was set the settings for POST to match GET. I don't know why POST settings were set differently in the first place.
Oh well. Thanks a lot for your help. I wish the host would only have solved this sooner than about 60 hours...
Well I have never had the problem before. I have clients that use FP extensions & POST as well. Something just did not seem correct in what they were telling you. And I have been using FP for about 10 years almost & help to manage a FP web board. I called the other admin & he agreed. Something just did not seem right in it.
Yep, that's the important thing. I was also questioning their explanations, that's why I posted this thread. I am pretty sure that they just wanted an easy way out of a situation they had no clue about how to fix. I got a little mad and talked to some admins, and they got on it and gave me a crap excuse to buy them some time.
In any case, thanks a lot for your help. I really appreciate you looking into this a bit and asking another admin