[eluser]Apfel1988[/eluser]
[quote author="OwanH" date="1229386019"]
Quote:And i debugged the post array withQuote:print_r($_POST);
but the return value was null… 
Hmm, the fact that the
print_r function returned a value of null means that the $_POST array is not being created by PHP interpreter when you submit the form. Try:
1. Checking the rendered form, meaning the HTML form code that the browser loads when loading the form, and make sure that the
method="post" attribute is set.
2. Creating a very simple page with a single form, couple of fields, upload it to your server, fill it out, submit it to a simple PHP script that just dumps the $_POST array data to see if it's empty or not. Do NOT use the CI framework for this, just straight native PHP. This will identify if this is a server issue. If not then I really don't know what else I could advise.[/quote]
The Rendered Source Code looks like:
Code:
<form action="http://garnele88.ohost.de/index.php/main/questions" method="post"><p class="more">Wie kommst du bei Frauen an ? (1/6)</p>
<p class="question">Hier und da und so bla und keks?</p><p class="answer"><textarea cols="60" rows="10" name="answer"></textarea></p>
<input type="hidden" value="2" name="qid" />
<input type="hidden" value="TEXT" name="type" />
<input type="hidden" value="1" name="do" />
<p class="answer" style="text-align:right;"><input type="submit" style="margin-right:20px;" name="sub_hinzu" value="nächste Frage"/></p>
</form>
We can see, that the Formhelper Works...
Now i created a simple naked php File and send the Form and print_r($_POST) has shown me all Post variables on the server.
I Think its a problem in CI, or what do you mean about that?
Thank you very much.