quantumdecipher Posted April 10, 2011 Share Posted April 10, 2011 Hi im trying to pass a variable through a url. Here's the code : echo"<td class='tableContent'><span onmouseover=\"tooltip.show('Click to add details to ".$result['workObject']."');\" onmouseout=\"tooltip.hide();\"><a href='addRemarksBucc.php?workObject=".$result['workObject']."'>".$result['systemRemarks']."</a></span></td>"; and here's the code to the next page: <table width="550" border="0" cellspacing="5" cellpadding="0"> <tr> <td width="78" valign="top">Work Object</td> <td><input name="workObject" id="workObject" type="text" value="<?php $_GET['workObject']; ?>" /></td> </tr> <tr> <td valign="top">Remark Details</td> <td><textarea name="errorMessage2" cols="50" rows="10" id="errorMessage2" accesskey="p" tabindex="1"></textarea> <input name="workObject2" type="hidden" value="" /></td> </tr> <tr> <td valign="top"> </td> <td> </td> </tr> <tr> <td> </td> <td><input name="submit" type="submit" class="btn" id="submit" accesskey="R" tabindex="11" value="Submit" /> <input name="reset" type="reset" class="btn" id="reset" accesskey="e" tabindex="12" value="Reset" /></td> </tr> </table> What am I doing wrong? The address bar shows the right url but the second page doesn't display any value for workObject. Thanks! Quote Link to comment Share on other sites More sharing options...
dcro2 Posted April 10, 2011 Share Posted April 10, 2011 Did you forget to put an echo in there? How about: <?php echo $_GET['workObject']; ?> Quote Link to comment Share on other sites More sharing options...
quantumdecipher Posted April 11, 2011 Author Share Posted April 11, 2011 Oh yeah! A million thanks. Quote Link to comment Share on other sites More sharing options...
dcro2 Posted April 11, 2011 Share Posted April 11, 2011 You're welcome. In other news, topic solved works now! *squee!* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.