Quote:
Originally Posted by yaniv
hi
first let me say that im not a php programmer (till now all i did was asp)
i realize that php is kinda easy to understand and im giving it a shot...
so please be patience... (-:
i want to do this:
take varible from a url, in asp i could use request.querystring but i understand that its not safe to use it with php (i have to register_globals=on) so i decided to listen and not to use it.
i cant use a form.
so i thought using javascript, take the var from the url put it in a javascript function and then send it to the php function.
or maybe there is a better way to this....
can you guys give some directions or a function the does this
thank you
Yaniv
Using the register_globals=on is a default feature with the modern PHP versions.How ever there are lots of ways to do what ever you need.
You can use sessions to pass the variables with your application.Give it a try by using this Tutorials.
http://www.w3schools.com/php/php_sessions.asp http://www.tizag.com/phpT/phpsessions.php
And according to your suggestion,if you familiar with JS that also possible, with some ajax.
Read this
Thread you will get a answer. here no need of ajax. try to find out it by your self.