Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send interger to access database

Status
Not open for further replies.

onressy

Programmer
Mar 7, 2006
421
CA
Hi all,

I'm having issues with my first xmlHTTP.send()

I have a JS function that is called from onChange of a radio button set. The JS function is passed three parameters that i'm using to create the url in this:
xmlHttp.open("POST",url,true)

I have tested and the variables are passed into the function. I'm not sure if i'm doing this correctly, but here is some of the function:
Code:
var url="page.php"
url=url+"?q="+str
url=url+"&p1="+p1
url=url+"&p2="+p2
xmlHttp.open("POST",url,true)
xmlHttp.send()
}

the page.php works on its own if i use another page to redirect to the page.php with the required queryString values. I'm not sure why things aren't working, anyu ideas?

Thanks
 
Has it anything to do with xml?! A quick suggestion would be this.
[tt]
xmlHttp.open("[red]Get[/red]",url,[blue]false[/blue])
xmlHttp.send()
[/tt]
(I change to sync because I'm not sure you implement call back handling.)

If it does not work, post to php forum or else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top