Question:

How do I retrieve string at server?

by  |  earlier

0 LIKES UnLike

When using the xmlhttprequest object and the statement;

xmlhttp.open("get","url?somestring",tr...

How do I retrieve string at server?

 Tags:

   Report

1 ANSWERS


  1. If you're talking about the query string, it's in the environment variable QUERY_STRING.  In C, you get it through

    strcpy(query, getenv("QUERY_STRING"));

    In PHP,

    $query = $_SERVER['QUERY_STRING'];

    If it were via post instead of get, you'd read in CONTENT_LENGTH bytes from standard input (stdin in C or php://input in PHP).

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.