Related:
- Give me equivalent javascript and html code
- Battery reset code - Guide
- Samsung volume increase code - Guide
- Disable javascript chrome - Guide
- How to disable javascript in tor - Guide
- How to get whatsapp verification code online - 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