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 Link to comment https://forums.phpfreaks.com/topic/183825-onclick-problem/ 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> Link to comment https://forums.phpfreaks.com/topic/183825-onclick-problem/#findComment-970302 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 Link to comment https://forums.phpfreaks.com/topic/183825-onclick-problem/#findComment-970303 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.... Link to comment https://forums.phpfreaks.com/topic/183825-onclick-problem/#findComment-970304 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 Link to comment https://forums.phpfreaks.com/topic/183825-onclick-problem/#findComment-970306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.