Hello,
I seem to have forgotten how to get the send.php file to receive the
values from the form using Form.serialize() - can anyone please put me
right!
Cheers
Geoff
<script type="text/javascript">
function send(){
var params = Form.serialize($(emailForm));
new Ajax.Updater(''updateDiv'', ''send.php'',
{asynchronous:true,
parameters:params});
}
</script>
</head>
<body>
<H2>Group 1</H2>
<form id="emailForm">
<input type="hidden" name="group" value="1">
Please enter your email address: <input type="text"
name="email_address">
<input name="sendbutton" type="button"
value="Send" onClick="send();">
</form>
<div id="updateDiv"></div>
send.php file - no results for the $result1 and $result2 ...
<?php
$result1 = $_GET[''group''];
$result2 = $_GET[''email_address''];
echo "Hello ...";
echo $result1;
echo $result2;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---