JSP how to accept the parameters from PHP

Source: Internet
Author: User
This is PHP.
$url = "http://localhost:8089/jsp.jsp";
$post _data = Array ("username" = "Bob", "key" = "12345");
$ch = Curl_init ();

curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, Curlopt_returntransfer, 1);
curl_setopt ($ch, Curlopt_post, 1);
curl_setopt ($ch, Curlopt_postfields, $post _data);

$output =curl_exec ($ch);

Curl_close ($ch);

Print_r ($output);
Then how to accept PHP in the JSP $post_data
And then how to show it?
Beg for your knees ...


Reply to discussion (solution)

form submission, how to do it

This has nothing to do with PHP, you can use get http://xxxx/xx?a=1&b=2 or post (your example), JSP how to take

If you do not use PHP code on the page, directly with $_post or $_get accept echo is out, if the code and the page is separated by the smarty, the background assigned to the page.

Finally all o .... In fact, I think a little silly .... Thank you for your answer.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.