473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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="" >

Dec 6 '06 #1
0 1235

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Miles | last post by:
Hi -- This is a bit of an implementation-specific problem, but I'd like to post it here to see if there's a general answer within the auspices of the language. I'm developing a high(er)-level...
1
by: Julia | last post by:
Hi, I have been asked this before but I think that I didn't explain myself well I am using exception and logging and I would like to log the parameters which was passed to the function...
13
by: Alan | last post by:
Hi Have asked before elsewhere but think I will have to rephrase the question. Using MS Access, what's the best way of tackling dates if I want to list all say; birthdays/birthdates in a date...
1
by: hinsbr | last post by:
Hello, I am trying to learn about web services. I was able to get a working VS 2005 web service and VS 2005 web service consumer application to communicate. The service would return the passed...
3
by: danbraund | last post by:
Hi everyone, I'm a long time C coder, who is coding his final year project in C++ to run under the MIT click routing system. Being fairly new to the OO side of the language, my problem is this: ...
0
by: funkychicken818 | last post by:
From: FunkyChciekn818 - view profile Date: Tues, Apr 25 2006 6:49 pm Email: "FunkyChciekn818" <funkychicken...@gmail.com> show options Reply | Reply to Author | Forward | Print | View...
1
by: mayur_hirpara | last post by:
Hi, I am looking to call a javascript function using variable number of parameters. Suppose I have a function foo(param) { ..... } I want it to be called unpredictebly when certain action...
5
banning
by: banning | last post by:
please feel free to delete this... i am an idiot... here is my code that works in case anyone was curious as to what i was trying to accomplish... <? require("Sajax.php"); function...
1
by: littlecoder | last post by:
Hello , I get an error like this : 'object expected' . Can anyone please help ? The code from the example is is as shown : I used Sajax library <? require("Sajax.php"); function...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.