jabcek, on 24 January 2011 - 06:22 AM, said:
what about my problem, i am trying to send a message inside the site. Here is the code:
i tryed like this:
But the only thing that is insered is reciever. All other fields are empty.
<form action='http://www.powerplaymanager.com/action/action_send_mail.php' method='post'>
<tr>
<td class='ppm_body' valign='top' width='100%'>
<div class='universal_form_element'>
<strong>Prejemnik</strong>
<input type='text' name='whom' size='30' value='' />
</div>
<div class='universal_form_element'>
<strong>Zadeva</strong>
<input type='text' name='subject' size='30' maxlength='50' value='' />
</div>
<div class='universal_form_element'>
<strong>Besedilo</strong>
<textarea name='text' rows='20' cols='100'></textarea>
</div>
<div>
<input type='hidden' name='admin' value='0' />
<input type='hidden' name='id_sort' value='1' />
<input type='hidden' name='url_send_ok' value='http://ppm.powerplaymanager.com/sl/posta.html?data=unread' />
<input type='hidden' name='url_send' value='http://ppm.powerplaymanager.com/sl/posta.html?data=send' />
<input type='submit' value="Pošlji" />
</div>
</td>
</tr>
</form>
i tryed like this:
string reciever= "testname";
string subject= "Welcome";
string text= "test123";
string admin="0";
string id_sort="1";
string url_send_ok = "http%3A%2F%2Fppm.powerplaymanager.com%2Fsl%2Fposta.html%3Fdata%3Dunread";
string url_send = "http%3A%2F%2Fppm.powerplaymanager.com%2Fsl%2Fposta.html%3Fdata%3Dsend";
string submit="Pošlji";
string postData1 = string.Format("whom={0}&subject={1}&text={2}&admin={3}&id_sort={4}&url_send_ok={5}&url_send={6}&submit={7}", reciever, subject, text, admin, id_sort,url_send_ok,url_send,submit);
string url1="http://ppm.powerplaymanager.com/sl/posta.html?data=send";
b.Navigate(url1, "", enc.GetBytes(postData1), "Content-Type: application/x-www-form-urlencoded\r\n");
But the only thing that is insered is reciever. All other fields are empty.
Never mind this, i had wrong url...
this is the correct one.
url1="http://www.powerplaymanager.com/action/action_send_mail.php"






MultiQuote




|