PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



send data from php page to jsp page

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General
View previous topic :: View next topic  
Author Message
ktsirig



Joined: 14 Sep 2005
Posts: 79

PostPosted: Wed Apr 30, 2008 11:45 am    Post subject: send data from php page to jsp page Reply with quote

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 :

Code:

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:

Code:

<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...
Back to top
View user's profile Send private message
lostboy



Joined: 02 May 2004
Posts: 6033
Location: toronto, canada

PostPosted: Wed May 07, 2008 4:53 am    Post subject: Reply with quote

i think the code for the input tag is off, you have a closing '>' in the value attribute that looks like it would close the html tag

Code:

"<input type=\"hidden\" name=\"formInput\"
value=\">".$code."\n".$sequence."\"/>".
--------^
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> PHP General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum