robert_gsfame Posted December 3, 2009 Share Posted December 3, 2009 I have <input type="text" name="message"> <a href=page2.php>click here</a> Can i parse the value whatever written in the textbox on url like this page2.php?message=blablabla using onclick Quote Link to comment Share on other sites More sharing options...
dgoosens Posted December 3, 2009 Share Posted December 3, 2009 yes but then you need to use a form: <form method="GET" action="page2.php"> <input type="text" name="message" value="message"> <input type="submit" name="submit" value="Submit"> </form> Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted December 3, 2009 Author Share Posted December 3, 2009 i don't want to use $_GET or $_POST.. can i still doing that?maybe in javascript Quote Link to comment Share on other sites More sharing options...
dgoosens Posted December 3, 2009 Share Posted December 3, 2009 if you want to pass value through the URL, then it is a GET statement. even if you do this with JS.... Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted December 3, 2009 Author Share Posted December 3, 2009 thanks i got it now! use document.getElementbyId Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.