Web Design and Development Forums

send data from php page to jsp page

This is a discussion on "send data from php page to jsp page" within the PHP Forum section. This forum, and the thread "send data from php page to jsp page are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > PHP Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 30th, 2008, 09:41   #1 (permalink)
Up'n'Coming Member
 
Join Date: Sep 2005
Location: athens
Age: 25
Posts: 59
send data from php page to jsp page

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: Select all
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: Select all
<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...
ktsirig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 30th, 2008, 11:29   #2 (permalink)
Up'n'Coming Member
 
Join Date: Feb 2006
Location: London
Age: 25
Posts: 99
Re: send data from php page to jsp page

are you sending the form data via POST or GET to the jsp page?

If you want to pass a variable from php to jsp, I assume GET would be the simplest way, but obviously not if it's sensitive data.
__________________

jimz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 2nd, 2008, 13:00   #3 (permalink)
Nerdy Moderator
 
CloudedVision's Avatar
 
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 520
Blog Entries: 4
Re: send data from php page to jsp page

Why do you need multiple scripting languages?
__________________
Take it easy

Other Road Design

WebForumz Moderator: HTML | Javascript | PHP
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for button to refresh page after inserting data in sql db wacara JavaScript Forum 0 Apr 27th, 2007 02:45
data representation of months in a web page monfu ASP.NET Forum 2 Aug 14th, 2006 07:37
track referer and pass value to asp send email page mccannio ASP Forum 3 Dec 6th, 2005 12:49
Send Binary Data vor ASP Forum 1 Aug 21st, 2003 14:38



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:17.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59