form problem using POST with AJAX
Hello,
Here is the situation :
I have a simple web page using css.
in a DIV i created a simple form (user and passwd) using POST method.
the form post line looks as follow,
Code:
<form method="POST" action="javascript:ajax_loadContent('divContainer','treatment.php');">
The action taken is then to load the result of a php page in the same DIV using AJAX (ajax-dynamic-content.js).
the problem :
The php script did not recieve any posted variable from the main page.
the following gives nothing : $passwd=(trim($_POST['passwd']));
variable is empty.
Any idea is welcome ^^;