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? Link to comment https://forums.phpfreaks.com/topic/225932-how-to-pass-information-in-url-with-html-code/ 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. Link to comment https://forums.phpfreaks.com/topic/225932-how-to-pass-information-in-url-with-html-code/#findComment-1166424 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? Link to comment https://forums.phpfreaks.com/topic/225932-how-to-pass-information-in-url-with-html-code/#findComment-1169727 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. Link to comment https://forums.phpfreaks.com/topic/225932-how-to-pass-information-in-url-with-html-code/#findComment-1175481 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.