Sajax: lost parameters passed to php function

This is a discussion on Sajax: lost parameters passed to php function within the PHP Language forums, part of the PHP Programming Forums category; Hi, i write an entire site using sajax and php and I found it very powerful and useful. But yesterday ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-06-2006
The Godfather
 
Posts: n/a
Default Sajax: lost parameters passed to php function

Hi,
i write an entire site using sajax and php and I found it very powerful
and useful.
But yesterday my client had formatted the ubuntu server and when server
is come back online a strange thing happened.
Sajax seems to work fine (i use the debug mode) while send parameters
to the exported function but when the server function has been called
the parameters sended by javascript are lose and the function receive
the string "Array".

I miss some php/apache module?
Maybe some security module installed don't let pass the parameter?

Any other idea are appreciated...

Thanks

MicKy

This is my code:

<?php
require("include/Sajax.php");
function checkuser($usr) {
//The paramenter $usr receive always the string "Array"
$query="SELECT * FROM users WHERE username = '".$usr."'";
query($query,$res,$rows);

if ($rows > 0) {
// TODO: ...
}
}

sajax_init();
//$sajax_debug_mode = 1;
sajax_export("checkuser");
sajax_handle_client_request();
?>

<?php sajax_show_javascript(); ?>

function do_check_ris(ris) {
document.getElementById("ris").value = ris;
}

function do_check() {
// get the folder name
var usr;
usr = document.getElementById("txtNick").value;

x_checkuser(usr, do_check_ris);
}
</script>

// form...
<input name="txtNick" type="text" id="txtNick" /> <input type="button"
name="check" value="check!" onclick="do_check(); return false;" >
<input type="text" name="ris" id="ris" value="" >

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0