Not sure exactly what you're running into.
Is it possible that you don't have short tags turned on and need to use <?php
to pass information, there are a number of ways. If it is a form submission, i.e. <form action="2ndpage.php" method="post">
You can do something like:
$result = mysql_query("Select * FROM members where Lastname = '".$_REQUEST['HLName']."' and Firstname = 'HFName' ");
or, if the quotes give you a headache:
$HLName = $_REQUEST['HLName'];
$result = mysql_query("Select * FROM members where Lastname = '$HLName' and Firstname = 'HFName' ");
if it is a mysql error that you are getting, after the result line, try:
print mysql_error(); // this will tell you what the interpreter is returning.
If you are using a header("Location: /2ndpage.php");
You can use sessions and pass the data. If you use sessions, you probably want to turn transsid on. This creates a wacky url with the hash just in case the cookie is not accepted by the surfer. The very first line of each page do:
session_start();
Then, you can set values like:
$_SESSION['HLName'] = 'birdicus';
$_SESSION['FLName'] = 'fasticus';
and read those values on the next page as:
$_SESSION['HLName'];
You can also use $_COOKIE['HLName'] if you set the cookie on the prior page with setcookie.
However, not really enough information to see what is going on based on what you posted. Maybe if you can post the error you are getting or a little more of the script.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
|