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
Expand|Select|Wrap|Line Numbers
- <!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?test=enteredval&submit=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?testpass=its me
tesspass is the my custom variable ...How i can get it...