No idea why my message appears twice!!?? Geoff
On 3 Mar, 09:02, geoffcox <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to use Ajax.Updater to send a javascript variable value to
> MySQL.
>
> To simplify matters I just want to see what is sent first so I have
>
> <script type="text/javascript">
> function send(){
> var params = counter;
> new Ajax.Updater('updateDiv', 'send.php',
> {asynchronous:true,method:'get', parameters:params});
>
> }
>
> counter being the javascript variable value.
>
> Question is - what should I have in the sever side php file?
>
> At the moment in send.php I have
>
> <?php
> echo "Hello <p>";
> $cue = $_GET['params'];
> echo $cue;
> ?>
>
> The Hello does appear on the page but the $cue does not.
>
> How should I do this?!
>
> Cheers
>
> Geoff
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---