require("file.php") with values??????
Is it possible to send values in the require line?
like so..... maybe???
this does not work
Am I going about it wrong?
Is there a way that this could get done differently?
thanks in advance!
Try just setting those variables before you require the file.
sending values without a require
the only way I have sent values between pages is in href tags as links, i.e.
<a href http://site/file.php?val=123&val2=456>blahblah</a>
So if I were to send the values before the require, how would that be done, if I don't want to use links?
$val2 = "567";
I think you're missing the point. You don't need to send the variables to the required file because it becomes part of the file that required it. This is why you must declare the variable values before you make the require statement.
Give it a try.
thats exactly what I needed to know