[eluser]Unknown[/eluser]
Hi All,
I have a problem solving the following;
I have a simple html form:
<form name="input" method="post" action="[removed]ajaxpage('5000function_get_message.php', 'content');">
<input type="submit" value="go to:">
<input type="text" name="user" size="6" maxlength="6"/>
</form>
The user enters a number into the "user" input field and clicks the "go to" button.
The ajax function 'ajaxpage' should update the 'content' div with the result of '5000function_get_message.php', this function executes a mysql query based on the user input.
All the pieces work individually (I have verified the Mysql query, the php code and the ajax function, they all work as expected), but.......
The problem: it seems that '5000function_get_message.php' is not able to access the value entered in the form by the user. So the result of the mysql query is empty.
How do I pass the number entered by the user in the form to the .php function?
Many Thanks for any assistance!
Dan