Welcome Guest, Not a member yet? Register   Sign In
404 on form submission
#1

[eluser]xLite[/eluser]
Hello

This is really starting to annoy me and there doesn't seem to be any reason why this happens. Basically I have a form, with a <textarea> field for input. I used to be able to type whatever I like, submit the form and then the process page processes the data etc.

However, now, if the <textarea> field contains http:/ it will immediately cause CodeIgniter to show a 404 page. Why does it do that???

If anyone could shine any light onto what is happening, that would be fantastic.

So basically, as soon as http:/ is entered, CodeIgniter throws a 404 page, if I don't enter this specific phrase it just continues onto the process page.
#2

[eluser]harman[/eluser]
can you show your code.
_View
_Controller

this may occur due to wrong form submit url, please check your form - submission path.

Code:
<form action="your_path" method="post">;
....
....
</form>
#3

[eluser]xLite[/eluser]
Didn't you read what I said? Tongue

The form works perfectly, but as soon as I input the phrase "http:/" into a textarea, then submit, it thinks the process page doesnt exist so it throws a 404.

NOTE: this ONLY happens when I submit the form with the phrase "http:/" anywhere inside the <textarea> input field.
#4

[eluser]harman[/eluser]
can you show your code.
#5

[eluser]xLite[/eluser]
There's nothing to show, it's just a html form that submits to a codeigniter page, however it doesnt go to the codeigniter page as soon as the "http:/" phrase it put inside the <textarea> input box. The process page does nothing, it's just an empty function called process().
#6

[eluser]Phil Sturgeon[/eluser]
Works fine for me but I am running 2.0.
#7

[eluser]xLite[/eluser]
I understand, this has never happened to me before on other hosts. It's just hostgator. Is there any config that HostGator could have meddled with which could cause this problem (looking at CI developers Big Grin)
#8

[eluser]dereklee[/eluser]
I have this same issue. It's inconsistent but totally annoying. I do not have http:// in there however. Did you find a solution?
#9

[eluser]xLite[/eluser]
[quote author="dereklee" date="1274738643"]I have this same issue. It's inconsistent but totally annoying. I do not have http:// in there however. Did you find a solution?[/quote]

At last! Someone with the same problem haha. You're right, this doesn't happen all the time for me, it happens 1 day then dissappears the next. Maybe it's related to timestamps or something.

Can a CodeIgniter developer please help rectify this issue?
#10

[eluser]dereklee[/eluser]
For me I had this weird scenario. My textarea would cause a 404 on the word from, if i removed the m and used any other letter it would submit ?? bizzare.




Theme © iAndrew 2016 - Forum software by © MyBB