4
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by DangerDev
0

Well you could have the function name as the query key and the parameters as the query value IE., test.com/?doThis=param1,param2,param3 Then in PHP

foreach($_GET as $key=>value){
   $values = split(",",$value);
   $key($values[0],$values[1],$values[2]);
}

Obviously, that's just an example but that's the jist of it. Not to mention that it is a GIGANTIC security gap. Seriously, you could start a country and form a small army inside that thing

0

u can call like this:

<html>
<head>
 <script>
	function Hi()
	{
		alert('Hi');
	}
 </script>
</head>
<body>
	<a href="javascript:Hi()">Hi</a>
</body>
</html>

or
u paste following in url it will work

javascript:(alert('hi'))

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.