Hi all,
Its is an simple question, but for me it takes more than 2 hours.
Just i want to pass the value using java script function
See this
but i got only
http://localhost/test/testpage.php?te st=enteredval&s ubmit=submit
That is if i have input box then only i can able to pass value of the inputbox
But i want to be the url as like
http://localhost/test/testpage.php?te stpass=its me
tesspass is the my custom variable ...How i can get it...
Its is an simple question, but for me it takes more than 2 hours.
Just i want to pass the value using java script function
See this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script>
function testfun()
{
var avar=document.mahes.test.value;
document.mahes.action="testpage.php?testpass="+aa;
document.mahes.submit;
}
</script>
</HEAD>
<BODY>
<form name="mahes" id="mahes" method="get">
<input type="text" name="test" >
<input type="submit" name="submit" value="submit" onclick="testfun()">
</form>
</BODY>
</HTML>
but i got only
http://localhost/test/testpage.php?te st=enteredval&s ubmit=submit
That is if i have input box then only i can able to pass value of the inputbox
But i want to be the url as like
http://localhost/test/testpage.php?te stpass=its me
tesspass is the my custom variable ...How i can get it...
Comment