Jump to content

variable in url doesn't show up on next page


quantumdecipher

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.