Welcome Guest, Not a member yet? Register   Sign In
Post Problems.
#1

[eluser]PHP Creative[/eluser]
Hi everyone.

I was wondering if someone could help me at all. For some reason CI does not like the following input

Code:
<form action="http://www.example.com/submit" method="post">

<input type="hidden" name="DATA1" value="XACARS|1.0& BEGINFLIGHT&bharb;||XAC1001|B737||EDDP"  />

<input type="submit" name="submit" />

</form>

When I press submit a 404 error is displayed.

Quote:404 Page Not Found
The page you requested was not found.

However the following works....

Code:
<input type="hidden" name="DATA1" value="XACARS|1.0&BEGINFLIGHT;&bharb;||XAC1001|B737||EDDP"  />

I've spent the last 2 days trying to figure this out. Could it be something to do with the .htaccess file. Could it be allowed characters?

I would appreciate it if anybody could help as I'm complete lost.
#2

[eluser]Dennis Rasmussen[/eluser]
Does the page exist?
I don't assume you're actually using http://www.example.com/submit as your action Smile
#3

[eluser]PHP Creative[/eluser]
Hi

Thanks for the reply

The page does exists.

It simply consists of the following to echo what has been input

<&lt;FORM&gt;&gt;&gt;

Code:
&lt;form action="http://www.example.com/submit" method="post"&gt;

&lt;input type="text" name="DATA1" value="XACARS|1.0&BEGINFLIGHT;&bharb;||XAC1001| B737||EDDP~TADUV~Z21~OMELO~L620~KOMUR~M725~VLM~T46~ASTUT~LOWW|N486.59752 E1634.9286|602||||155|120|20605|29|IFR|0|keines" /&gt;

&lt;input type="submit" name="submit" /&gt;

&lt;/form&gt; 


<<CONTROLLER>>

Code:
class Submit extends Controller {

    function Submit()
    {
        parent::Controller();    
        
    }

    function index()    
    {

        echo $this->input->post('DATA1');

    }

}

Why does CI not like that input and redirect to a 404 page. Whenever I enter the following it works perfectly

Quote:XACARS|1.0&BEGINFLIGHT;&bharb;||XAC1001|B737||EDDP~TADUV~Z21~OMELO~L620~KOMUR~M725~VLM~T46~ASTUT~LOWW|N486.59752 E1634.9286|602||||155|120|20605|29|IFR|0|keines

Just not with this

Quote:XACARS|1.0&BEGINFLIGHT;&bharb;||XAC1001| B737||EDDP~TADUV~Z21~OMELO~L620~KOMUR~M725~VLM~T46~ASTUT~LOWW|N486.59752 E1634.9286|602||||155|120|20605|29|IFR|0|keines

Is it because of the space before B737? Does CI not like spaces in inputs? Is that a space?

Thanks a million




Theme © iAndrew 2016 - Forum software by © MyBB