yaron
09-22-2003, 05:08 AM
Hello all.
I need to transfer data from one php script to another.
Due to its length I decided to do it via post and not get.
I've created a table full of links. each link is actually a form
that contains my data in a hidden input.
easch link calls to a js submit funcion that gets the form's name and submit it.
something like that
<a href='JavaScript:sForm($fName)'>click me</a>
and here is sForm
function sForm(fName)
{
f=eval(fName);
f.submit();
}
well, it seems like a nice idea but the form is not submitted!!
I get : object doesn't support property or method!
What is wrong??
I need to transfer data from one php script to another.
Due to its length I decided to do it via post and not get.
I've created a table full of links. each link is actually a form
that contains my data in a hidden input.
easch link calls to a js submit funcion that gets the form's name and submit it.
something like that
<a href='JavaScript:sForm($fName)'>click me</a>
and here is sForm
function sForm(fName)
{
f=eval(fName);
f.submit();
}
well, it seems like a nice idea but the form is not submitted!!
I get : object doesn't support property or method!
What is wrong??