require("file.php") with values??????
Is it possible to send values in the require line?
like so..... maybe???
require("file.php?val=123&val2=456");
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?
you follow????
<?php
$val1 ="1234";
$val2 = "567";
?>
Like that!
Brennen,
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.
riiiiiiiiiiiiiiiiiiiiiiiiiiiight
thanks,
thats exactly what I needed to know
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks