variable help please
Posted: Wed Jul 14, 2004 7:43 pm
This is going to be hard to describe since i am new to PHP. I have a search page that gets data from a MYSQL database and displays it into a table (easy). Now when i show the ID number (workorder_ID) I turn it into a link to a formview page.
My problem is i want to carry the workorder_id number onto the next page. Went through search on this forum and it talks about sessions and security and that seems more complex than what i need. I dont care if someone alters the number. It would only allow them to change the page being view.
If you could possibly point me in the right direction that would be greatful. I thought I could use a $_request['id'] to save the variable but was unable to make it work
-- Pizmal
feyd | Please use
Code: Select all
while ($row= mysql_fetch_assoc($result)) {
print "<tr>";
print "<td><a href="formview.php">".stripslashes($row['workorder_id'])."</a></td>";
$date = stripslashes($row['workorder_date']);
print "<td>".date("m/d/y", $date)."</td>";My problem is i want to carry the workorder_id number onto the next page. Went through search on this forum and it talks about sessions and security and that seems more complex than what i need. I dont care if someone alters the number. It would only allow them to change the page being view.
If you could possibly point me in the right direction that would be greatful. I thought I could use a $_request['id'] to save the variable but was unable to make it work
-- Pizmal
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]