[dx] Posted June 19, 2009 Share Posted June 19, 2009 Hi,I'm trying figure out how javascript works..Will something like this work? function bla() { some1 = getElementById("something1"); some2 = getElementById("something2"); http.open('get', '/query.php?some1='+some1+'&some2='+some2);} or how it's going on... No matter, in any case, if it work, lets say.. is it good way to do it.. if someone type url in browser like www.address.com/query.php?some1=some1&some2=some2 , that means he can access db and input whatever he wants on every location...What is the best way to make function to insert some infos to db, or do mysql update etc..Thanks Link to comment Share on other sites More sharing options...
chibineku Posted June 20, 2009 Share Posted June 20, 2009 You use php or some other server side language for all of that stuff. Anything you can do with php, you should, because people can have JavaScript turned off, but php will go about its business completely unhindered by any settings your visitors have. Link to comment Share on other sites More sharing options...
[dx] Posted June 20, 2009 Author Share Posted June 20, 2009 Well, I can't do whole web by forms submiting post to other page, then using $_GETFor example: I have link with image <a><img></a> and I need to make it increase by 1 every time I click on link/imageWhat is the best and simplies way? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.