A JM Posted November 9, 2013 Share Posted November 9, 2013 Been a while since I've posted to the forum.. I've got a problem trying to get a variable that has been passed to an iframe. The variable appears in the iframe HTML tags but I'm unable to retrieve it on the page that it being passed to, any ideas on what I'm doing wrong? Here is the source from of the parent page, a simple iframe: <iframe src="/jqueryupload/upload.php?FileSaveNum=0001336" width=99% height="150"></iframe> and I've been trying to use $_GET['FileSaveNum']; with no luck on the iframe page. Here is the source on the iframe page: <?php//******The number variable*******$FileNum = $_Get['FileSaveNum'];echo $FileNum;?> One thing to keep in mind is that there is no 'SUBMIT' happening here to the iframe, so maybe that's where my problem is? Hopefully someone can help with how I can read the variable from the AJM, Quote Link to comment https://forums.phpfreaks.com/topic/283760-need-help-readingaccessing-a-variable-in-an-iframe/ Share on other sites More sharing options...
Solution A JM Posted November 9, 2013 Author Solution Share Posted November 9, 2013 Of course just after I post to the forum I found the solution... I wasn't using the correct case on the "GET".. changed the case and it works. Sorry for the noise. AJM, Quote Link to comment https://forums.phpfreaks.com/topic/283760-need-help-readingaccessing-a-variable-in-an-iframe/#findComment-1457695 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.