Okay, look at that code. All day I have been trying to figure out why my messages wont send, or why daily chance wont work. Or why anything wont work for that matter.PHP Code:
public void SendMessage(String username, String Subject, String Message)
{
Html = Wrapper.get("http://www.gaiaonline.com/profile/privmsg.php?mode=post");
Html = Wrapper.post("http://www.gaiaonline.com/profile/privmsg.php", "username=" + username + "&subject=" + Subject + "&message=" + Message + "&area_code=&pn1=&pn2=&selected_options=post&btn_send=true&preview=&post=&mode=post&src=&folder=inbox&id=");
if (Html.Contains("Your Private Message has been sent"))
{
MessageBox.Show("Your message has been sent to : " + username);
}
else
{
MessageBox.Show("Message sending failed");
}
}
The only thing that works is the login. After that nothing works >.>
Im really hoping a fellow programmer on the team can help me, im posting because most neglect to help me.
Im using chris' wrapper.
It alsnt let me use the data on my browser, when I try all it does is refresh the page...
Results 1 to 5 of 5
Thread: Something wrong here?
- 31 Jul. 2010 09:11pm #1
Something wrong here?
Shh, I'm watching My little pony.
- 31 Jul. 2010 09:28pm #2
- 31 Jul. 2010 09:35pm #3
I need you to get on msn, that wont work either. And when I view the html source, it just shows the login page...
So i guess its logging me out, but I dont clear the cookies.
Something isnt right :\
Edit : I also tried that, didnt work.Last edited by Bman; 31 Jul. 2010 at 09:37pm.
Shh, I'm watching My little pony.
- 31 Jul. 2010 11:28pm #4PHP Code:
public static bool Send_Private_Message(String Username, String Subject, String Message)
{
if (Wrapper.Post(Gaia_URL_Nor + Gaia_URL_NorPrivateMessages + "?mode=post", "username=" + Username + "&subject=" + Subject + "&message=" + Message + "&folder=inbox&selected_options=post&btn_send=true=&mode=post", "http://www.gaiaonline.com/").IndexOf("Your Private Message has been sent to:") > -1)
{
return true;
}
return false;
}
PHP Code:Boolean value = Gaiaonline.Send_Private_Message(To, Subject, Message);
if (value == true)
Console.WriteLine(Accounts[i] + " : Sent message to " + To);
else
Console.WriteLine(Accounts[i] + " : Failed to send message.")
- 31 Jul. 2010 11:58pm #5
Oop. I got it.
Thanks for the help chad.
Ill + rep you tomorrow. going to sleep soon.Last edited by Bman; 01 Aug. 2010 at 02:11am.
Shh, I'm watching My little pony.