pioneerx01 Posted January 28, 2011 Share Posted January 28, 2011 I am looking to pass info via URL in HTML code. I know how to do it in PHP, but I need this function in HTML So in PHP it would look like this: http://www.mysite.org/forms.php?pn=$row[no] And on receiving end in PHP you would have: $_GET[pn] Now how do I do same exact thing in HTML? Can I? Quote Link to comment Share on other sites More sharing options...
trq Posted January 28, 2011 Share Posted January 28, 2011 HTML is not able to do anything with such data, its not a programming language. Quote Link to comment Share on other sites More sharing options...
sunfighter Posted February 4, 2011 Share Posted February 4, 2011 I think your trying to pass information from one page to another, right? If yes what are you trying to pass? Quote Link to comment Share on other sites More sharing options...
moa Posted February 17, 2011 Share Posted February 17, 2011 Well, you can send data from HTML file to other file, using either GET or POST methods. But though the data has been sent to other page, there is no way by which you can retrieve that data without using scripting language like PHP, thats where $_GET and $_POST variables comes to play. 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.