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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.