elentz Posted November 26, 2008 Share Posted November 26, 2008 I have a php page that I want to link to from another page. The original page url is :http://192.168.3.253/index.php?action=DetailView&module=Accounts&parenttab=Support&record=3985&viewname=0 I want to use the record number (in this case 39858) in my php script. I only have the url to work with, I cannot change the code that creates the page I get this record number from. I have tried a simple Get and POST and tried to echo the record number with no results. Can someone help me with a clue on how to do this? Thanks alot Quote Link to comment https://forums.phpfreaks.com/topic/134311-how-can-i-get-the-record-number/ Share on other sites More sharing options...
Philip Posted November 26, 2008 Share Posted November 26, 2008 get should work... i don't know why it wouldn't <?php if(isset($_GET['record'])) { echo $_GET['record']; } ?> That doesn't return anything? Quote Link to comment https://forums.phpfreaks.com/topic/134311-how-can-i-get-the-record-number/#findComment-699228 Share on other sites More sharing options...
elentz Posted November 26, 2008 Author Share Posted November 26, 2008 I got a blank page with that code as well. Just to make sure I am explaining what I have. I have a url for the 2nd page that I want to pass the variable $record from the parent page. I only have the url from the parent page to work with. Could the record number be in an array? Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/134311-how-can-i-get-the-record-number/#findComment-699251 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.