hi

please go to this address:
http://support.ngsnet.net/realms.aspx?__EVENTTARGET=DataGrid1:ctl9:ctl0

this adress redirects to:
http://support.ngsnet.net/user_sessions.aspx
(but you don't should use of this adress directly because it does not work in next step that i will explain.)

then you see 3 fields.
in the first field which is blank put: m5
and click submit button. then it goes to http://support.ngsnet.net/sessions.aspx and showes the result.
everything works right.

now i want to create thoes 3 fields in other site and when one user fill those fields same as this site and clicks submit button then redisrects and go to http://support.ngsnet.net/sessions.aspx and showes the result.

i worked on this job some hours but i couldnot success 🙁
i think we must use of curl but i am not sure.

i need to do this job and it is very important for me. anyone can help me?

thanks

    i writed these steps with curl but it doesn't work 🙁
    (these steps work right when you using via explorer handly)

    
    <?php
    $curl = curl_init();
    curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/realms.aspx?__EVENTTARGET=DataGrid1:_ctl9:_ctl0");
    curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    ob_start();
    curl_exec ($curl);
    ob_end_clean();
    curl_close ($curl);
    unset($curl);
    
    
    $curl = curl_init();
    curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/user_sessions.aspx");
    curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    ob_start();
    curl_exec ($curl);
    ob_end_clean();
    curl_close ($curl);
    unset($curl);
    
    
    $curl = curl_init();
    $curlPost = '__EVENTTARGET='.urlencode('btnOK').'&__VIEWSTATE='.urlencode('dDwtNjQ5NjgwNTI1Ozs+c4SsOmVzdHA4377ABboPdElmM/U=').'&txtUName=m5&startdate='.urlencode('84/07/01').'&enddate='.urlencode('86/06/31').'&btnOK=&#1578;&#1575;&#1610;&#1610;&#1583;'; 
    curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/user_sessions.aspx");
    curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
    curl_setopt($curl, CURLOPT_POST, 1);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $curlPost);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $mswdata = curl_exec ($curl);
    curl_close ($curl);
    
    
    echo $mswdata;
    ?>
    
    
      Write a Reply...