Hi,
I have a php script which is invoked by javascript´s getElementbyID. This means I am passing the values the script needs back in using vars tacked on to the URL - eg. script.php?thing1=something&thing2=something2
Now, this is OK unless I want to pass a really long string back to the script... How can I do this without refreshing the page/ submitting the form? I am thinking of using a text file as a temporary holding place (eg getting the javascript to write the string to it), and then having the PHP read this string out.
Is there a better way of doing it? (Remember I cannot submit the page, so cannot just pass it back to php unless I can somehow invoke some PHP without actually submitting the page)?
Thanks
I have a php script which is invoked by javascript´s getElementbyID. This means I am passing the values the script needs back in using vars tacked on to the URL - eg. script.php?thing1=something&thing2=something2
Now, this is OK unless I want to pass a really long string back to the script... How can I do this without refreshing the page/ submitting the form? I am thinking of using a text file as a temporary holding place (eg getting the javascript to write the string to it), and then having the PHP read this string out.
Is there a better way of doing it? (Remember I cannot submit the page, so cannot just pass it back to php unless I can somehow invoke some PHP without actually submitting the page)?
Thanks