Related:
- Give me equivalent javascript and html code
- Disable javascript chrome - Guide
- Cs 1.6 code - Guide
- Samsung volume increase code - Guide
- Battery reset code - Guide
- Turn off javascript tor android - Guide
1 response
your question is clear. php is a sever side language and JavaScript is a client Side language. JavaScript can't work like php. What ever if you asking how to receive values at server side form client side using JavaScript, the answer is JavaScript is not able to do it. If your question is how to call post and get method using html and JavaScript, my answer will be...
let us consider a form...
<html>
<head>
<script type="text/javaScript">
function abc()
{
document.getElementById(abc).submit();
}
</script>
</head>
<body>
<form name="xyz" id="abc" method="post" action="http://ww12.jghg.com">
<input type="text" id="sss">
<input type="button" onclick="abc()">
</form>
</body>
</html>
You can use "get" in place of "post".
I thing you can understand.
For more assistance please ask here...
http://www.orkut.co.in/Main#Community?cmm=93119309
let us consider a form...
<html>
<head>
<script type="text/javaScript">
function abc()
{
document.getElementById(abc).submit();
}
</script>
</head>
<body>
<form name="xyz" id="abc" method="post" action="http://ww12.jghg.com">
<input type="text" id="sss">
<input type="button" onclick="abc()">
</form>
</body>
</html>
You can use "get" in place of "post".
I thing you can understand.
For more assistance please ask here...
http://www.orkut.co.in/Main#Community?cmm=93119309