Hi i wannt to get a value from a local input to another page without globals? is this possible!?? This i what im trying to get to anther page!! <?php $topic_query = mysql_query("SELECT * FROM topics ORDER BY ID") or die (mysql_error()); while ($topic = mysql_fetch_array($topic_query)) { ?> <TR> <TD WIDTH=82% BGCOLOR="#FFFFFF" HEIGHT=18 VALIGN=TOP> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=5 WIDTH=100%> <TR> <TD> <P><FONT SIZE="+1" FACE="Trebuchet MS,Arial,Helvetica"><a href="view.php?topicID=<?php echo $topic['ID'] ?>"><?php echo $topic['TopicName'] ?></a></FONT> </TD> Can i define topicID= to a variabel with some thing that point to this value when i use <a href="view.php?topicID=<?php echo $topic['ID'] ?>"><?php echo $topic['TopicName'] ?></a> sow it keeps this value when enter the view.php The maine problem here is that i wanna define echo to the two $topic value to anther page!
use a Session.
uhhhh Sessions i newbee at tha't can you give an exampel on that?
on my code? some thing like this i think?
$_SESSION["topicID"] ="";
But what happends when i use other session at loggin can it krachs!
There's a lot stuff about sessions on this site. But I don't think it helps you to just adjust your snippet. Try to understand the concept of sessions, it really not very difficult and integrate them into your application
http://www.phpbuilder.com/columns/index.php3?cat=6&subcat=36