0

I'm passing a varaible to a iframe but can't seem to access this variable via the global get variable.

<iframe src="uploadContract.php?clientid={$clientid}" frameborder="0" height="95"></iframe> 

in uploadContract.php I try to access the variable like $_GET['clientid'];

Somehow I can't seem to get the value via the Get global

What am I doing wrong?

What I noticed is that this iframe is within another frame, if I display the iframe not within a frame it actually works. How can I get this to work within a frame?

3
  • Not to sure if it could be that the iframe is called within an frame Commented Jun 3, 2010 at 13:08
  • you have a syntax errors in your code. the code you posted won't work. is it HTML or PHP at least? Commented Jun 3, 2010 at 13:18
  • @Col it would be correct if a template like Smarty is used. @Roland Perhaps you could show the actual html output instead Commented Jun 3, 2010 at 13:25

2 Answers 2

1

Check in the html that the src is really what you think it is. Then try var_dump($_GET); from uploadContract.php

Sign up to request clarification or add additional context in comments.

Comments

0

I doubt that the problem is in the code snippet that you present here. Are you sure that $clientid has a valid value when you try to use it in the above snippet?

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.