Jump to content

send data from php page to jsp page


ktsirig

Recommended Posts

Hello, I have a php page with a button which I want to use in order to send data to a jsp page. The code for the button in the php page is :

 

echo "<td align=\"center\"><form method=\"post\" action=\"http://mysite.blabla.com/input.jsp\">".
      "<input class=\"formbutton\" type=\"submit\" value=\"Run program\"/>".
     "<input type=\"hidden\" name=\"formInput\" value=\">".$code."\n".$sequence."\"/>".
     "</form></td></tr>\n";

and I use the code above in order to fill data in the textarea in the jsp page. Tha code in the input.jsp page is:

 

<td>
        <textarea class="small" name="formInput" ></textarea>
</td>

The problem is that I do not see any data being written in the textarea when I press the button...

PS: Both $code and $sequence have values and I can see them if I print them in my php page...

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.