Jump to content

total noob question re forms


sycosyco123

Recommended Posts

finally got it.

 

 

$xajax = new xajax();	

function processForm($aFormData)  {
    $objResponse = new xajaxResponse();
    
$sOut = "Name: ".$aFormData['name'];


$objResponse->addAssign("theform", "innerHTML", $sOut); 

return $objResponse;
}
$xajax->registerFunction('processForm');

$xajax->processRequests();
?>
<html>
<head>
<? $xajax->printJavascript(); ?>
</head>
<body>
<div id="theform">
<form id="myform" method="post">
<td>Name:</td><td><input autocomplete="off" type="text" class="textbox" name="name" id="name" /></td>
<td> </td><td><input type="button" class="button" value="Submmit"  onclick="xajax_processForm(xajax.getFormValues('myform'));"/></td>
</tr>
</table>
</form>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.