Hey guys, is have a bot at the moment which basicly uses the browser to get around things and its really slow as the process which i need doing is repetitive. i need a really quick method. Can any1 post a sample script where it

Downloads HTTP source to text file or temp text box
edits source strings as needed
post to server (submit)

thank you i would really really appreciate your help.

no one help me?

...edits source strings as needed ...post to server (submit)

What do you mean "Edits source strings"?
Do you mean you post modified HTML to a server?

...or are you saying you want to submit a form?

yeah post HTML which is modified back to the server.

As at the moment im using the browser and its taking ages to load and then submit.

Any help fella?

How are you submitting modified HTML back to the server using a browser?

no sorry, what i mean is im using the browser to find elements to process the macro.

it would be great if i can download, edit and post the HTML page. Can you give me a sample of any website html please ?

Dave

I'm not sure what to give you since I'm not really sure what you're doing.

Either you are:
1) Calling a web page to submit a populated form
or
2) Attempting to actually modify a web page

If you are attempting to fill a form and submit it, that CAN be fairly easy.

If option 2, there are a LOT of other things to consider such as FTP and permissions to write the modified HTML back to the server.

Do you have a sample web page?

Subit a form fella

I made an example using a page called the Gangster Name Generator that returns a made-up Gangster name when you put in a regular name.

If you look at the source of this page, you will see a form that has three fields
gender, firstname and secondname -- each which must have a value:
The name being called from the submit form is in a variable called "action".
If you look for the action= key, you will see the name of the URI being called.

If you piece together that URI with a question-mark and the parameters prefixed with their variable names, you can generate the result using GET or POST

Here is a clickable sample using the name Fred Johnson

To get the result, open a WebClient stream to to the page and search for the result inside of the regular expression Regex("<b>.* '(.*)' .*</b>")

As an alternative, you can use the HttpWebResponse if you want to change the verb to POST

Here is an example of both methods:

Imports System.IO
Imports System.Text.RegularExpressions
Imports System.Net

Module Module1
   Function GetGangsterNameG(ByVal strFirstName As String, ByVal strLastName As String, ByVal chrGender As Char) As String
      Dim strRetVal As String = ""
      Dim strUri As String =
         "http://www.quizopolis.com/gangster-name-generator.php?" &
         "gender=" & chrGender &
         "&firstname=" & strFirstName &
         "&secondname=" & strLastName
      Dim wc As New WebClient
      Dim fileWebIn As New StreamReader(wc.OpenRead(strUri))
      Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
      Dim strData As String
      While Not fileWebIn.EndOfStream
         strData = fileWebIn.ReadLine()
         If (rxGangsterName.IsMatch(strData)) Then
            strRetVal = rxGangsterName.Match(strData).Groups(1).Value
         End If
      End While
      fileWebIn.Close()
      Return strRetVal
   End Function

   Function GetGangsterNameP(ByVal strFirstName As String, ByVal strLastName As String, ByVal chrGender As Char) As String
      Dim strRetVal As String = ""
      Dim strUri As String =
         "http://www.quizopolis.com/gangster-name-generator.php?" &
         "gender=" & chrGender &
         "&firstname=" & strFirstName &
         "&secondname=" & strLastName

      Dim req As HttpWebRequest = WebRequest.Create(strUri)
      req.Method = WebRequestMethods.Http.Post
      Dim fileWebIn As New StreamReader(req.GetResponse().GetResponseStream())

      Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
      Dim strData As String
      While Not fileWebIn.EndOfStream
         strData = fileWebIn.ReadLine()
         If (rxGangsterName.IsMatch(strData)) Then
            strRetVal = rxGangsterName.Match(strData).Groups(1).Value
         End If
      End While
      fileWebIn.Close()
      Return strRetVal
   End Function

   '
   Sub Main()
      Console.WriteLine(GetGangsterNameG("Fred", "Johnson", "M"(0)))
      Console.WriteLine(GetGangsterNameG("Jill", "Jackson", "F"(0)))
      Console.WriteLine(GetGangsterNameP("Sam", "Sneed", "M"(0)))
      Console.WriteLine(GetGangsterNameP("Shelly", "Sharp", "F"(0)))
   End Sub
End Module

ah rite, i see that you are inserting variables in the URL, have you got a code that changes the HTML? or a certin value (form)

Tryd both of the codes and i couldn't see if they work or not

The program (CGI, php, asp, etc) behind the form is only going to accept certain variables -- the three I mentioned.

What do mean changes the HTML? -- to what?

If you have another CGI to call with different variables, you can use either technique to send variables to it.

This code writes the output to the console.
If you can't see it, you can put a breakpoint on the "End Sub" and the program will pause there. You can also step through it with F-10 and watch each line in Main execute.

al im wanting todo to is value of subject and message on that page to X and Post to their server so it submits it.

OK, use the same technique with different variable names.
The name of the item you will be calling will be inside action=""

I done understand what i need to edit, i see

"gender=" & chrGender &
"&firstname=" & strFirstName &
"&secondname=" & strLastName

but is this not to add onto the url? if so is this how it works on any http editing.

Console.WriteLine(GetGangsterNameG("Fred", "Johnson", "M"(0)))
Console.WriteLine(GetGangsterNameP("Sam", "Sneed", "M"(0)))
Console.WriteLine(GetGangsterNameP("Shelly", "Sharp", "F"(0)))

the above i userstand that they are the values of the 3 above, but as the above not many pages can add by php url?

Imports System.IO
Imports System.Text.RegularExpressions
Imports System.Net
 
Module Module1
   Function GetGangsterNameG(ByVal strFirstName As String, ByVal strLastName As String, ByVal chrGender As Char) As String
      Dim strRetVal As String = ""
      Dim strUri As String =
         "http://www.quizopolis.com/gangster-name-generator.php?" &
         "gender=" & chrGender &
         "&firstname=" & strFirstName &
         "&secondname=" & strLastName
      Dim wc As New WebClient
      Dim fileWebIn As New StreamReader(wc.OpenRead(strUri))
      Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
      Dim strData As String
      While Not fileWebIn.EndOfStream
         strData = fileWebIn.ReadLine()
         If (rxGangsterName.IsMatch(strData)) Then
            strRetVal = rxGangsterName.Match(strData).Groups(1).Value
         End If
      End While
      fileWebIn.Close()
      Return strRetVal
   End Function
 
   Function GetGangsterNameP(ByVal strFirstName As String, ByVal strLastName As String, ByVal chrGender As Char) As String
      Dim strRetVal As String = ""
      Dim strUri As String =
         "http://www.quizopolis.com/gangster-name-generator.php?" &
         "gender=" & chrGender &
         "&firstname=" & strFirstName &
         "&secondname=" & strLastName
 
      Dim req As HttpWebRequest = WebRequest.Create(strUri)
      req.Method = WebRequestMethods.Http.Post
      Dim fileWebIn As New StreamReader(req.GetResponse().GetResponseStream())
 
      Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
      Dim strData As String
      While Not fileWebIn.EndOfStream
         strData = fileWebIn.ReadLine()
         If (rxGangsterName.IsMatch(strData)) Then
            strRetVal = rxGangsterName.Match(strData).Groups(1).Value
         End If
      End While
      fileWebIn.Close()
      Return strRetVal
   End Function
 
   '
   Sub Main()
      Console.WriteLine(GetGangsterNameG("Fred", "Johnson", "M"(0)))
      Console.WriteLine(GetGangsterNameG("Jill", "Jackson", "F"(0)))
      Console.WriteLine(GetGangsterNameP("Sam", "Sneed", "M"(0)))
      Console.WriteLine(GetGangsterNameP("Shelly", "Sharp", "F"(0)))
   End Sub
End Module

Any form is submitted the same way. The variables you use will be specific to the form you are calling.
Can you show me the HTML code for the form you are trying to submit?

its basicly subject and message i want to change and add a value to and click btnbutton.

<!DOCTYPE html>
  <html>
    <head>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/jquery-ui.min.js"></script>      
      
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <meta http-equiv="Pragma" content="no-cache" />
      <meta http-equiv="Expires" content="-1" />

      <meta name="description" content="Discuss your favorite games on the EA forums. Learn the latest tips and tricks from other gamers like you and share you own personal thoughts and discoveries." />
      <meta name="robots" content="index, follow" /> 

        <link rel="canonical" href="http://forum.ea.com/uk/pm/sendTo/100.page" />
      <!--[if lte IE 7]>
        <link rel="icon" href="http://cdn.forum.ea.com/uk/templates/default/ea/images/logos/favicon.ico?v2.25.1" />
        <link rel="shortcut icon" href="http://cdn.forum.ea.com/uk/templates/default/ea/images/logos/favicon.ico?v2.25.1" />
      <![endif]-->
      <link rel="icon" href="http://cdn.forum.ea.com/uk/templates/default/ea/images/logos/favicon.ico.png?v2.25.1" />
      <link rel="shortcut icon" href="http://cdn.forum.ea.com/uk/templates/default/ea/images/logos/favicon.ico.png?v2.25.1" />

      <style type="text/css">@import url( [url]http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/styles/style.css?v2.25.1[/url] );</style>
      <style type="text/css">.icon_new_topic img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/post.gif);
	background-repeat: no-repeat;
	height: 25px;
	width: 82px;
}

.icon_reply img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/reply.gif);
	background-repeat: no-repeat;
	height: 25px;
	width: 82px;
}

.icon_reply_locked img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/reply_locked.gif);
	background-repeat: no-repeat;
	height: 25px;
	width: 82px;
}

.icon_quote img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_quote.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_edit img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_edit.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_profile img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_profile.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_pm img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_pm.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.btn_info img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/btn_more_info.gif);
	background-repeat: no-repeat;
	height: 24px;
	width: 99px;
}

.icon_aim img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_aim.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_email img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_email.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_icq_add img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_icq_add.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_msnm img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_msnm.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_www img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_www.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

.icon_yim img {
	background-image: url(/uk/templates/default/skins/en_GB/en_GB_default/images/icon_yim.gif);
	background-repeat: no-repeat;
	height: 18px;
	width: 59px;
}

td.signature {
  padding: 15px 1px 15px 1px;
}</style>

      <link type="text/css" rel="stylesheet" media="screen" href="http://ll.assets.ea.com/ea/gus/gus.css" />
      <style type="text/css">@import url(http://cdn.forum.ea.com/uk/templates/default/ea/styles/gus.css?v2.25.1);</style>

      <link type="text/css" rel="stylesheet" href="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/styles/ea_header_footer.css?v2.25.1" />
      <!--[if lte IE 7]>
        <link type="text/css" rel="stylesheet" href="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/styles/ea_header_footer_ie6.css?v2.25.1" />
      <![endif]-->

        <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script> <!-- Chartbeat -->
      
      <script  type="text/javascript">
        if (parent.frames.length != 0) {
          // loaded in frames
          parent.location.href = this.location.href;
        }
      </script>

      <script language="javascript" type="text/javascript" src="http://cdn.forum.ea.com/uk/templates/default/js/gus.js?v2.25.1"></script>

      <title>EA Forums</title>
    </head>
    <body class="en_GB main">
        <script type="text/javascript">
function showEmail(beforeAt, afterAt)
{
	return beforeAt + "@" + afterAt;
}

var starOn = new Image();
starOn.src = "http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/star_on.gif?v2.25.1";

var starOff = new Image();
starOff.src = "http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/star_off.gif?v2.25.1";

function writeStars(q, postId)
{
	for (var i = 0; i < 5; i++) {
		var name = "star" + postId + "_" + i;
		document.write("<img name='" + name + "' alt='*' />");
		document.images[name].src = q > i ? starOn.src : starOff.src;
	}
}

function addBookmark(relationType, relationId)
{
	var w = window.open('/uk/bookmarks/insert/' + relationType + '/' + relationId + '.page', 'bookmark_add', 'width=700, height=200, scrollbars=auto, resizable=true');
	w.focus();
}

function reportPost(postId, startPage) {
  if (startPage === undefined) {
    startPage = 0;
  }
  var w = window.open('/uk/reportPosts/report/' + postId + '.page' + '?start=' + startPage, 'report_post', 'width=700, height=300, scrollbars=auto, resizable=true');
  w.focus();
}


function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}

function loadUserPrivateMessages(userId) {
  var requestUrl = "/uk/infractions/stats.page";
  $.ajax({
    type: 'POST',
    data: {'module':'pm' , 'action':'stats','user_id': userId},
    url: requestUrl,
    success: function(data, textStatus, XMLHttpRequest) { fillPrivateMessagesData(data, this.context);},
    error: function(XMLHttpRequest, textStatus, errorThrown) {showErrorMessage(textStatus);},
    dataType: 'json',
    context: $("#privatemessages")
  });
}

function showErrorMessage(data){
	  $("#spamRequest").dialog({ 
	    title: data.message,
	    resizable: false,
	    buttons: { "Close": function() { $(this).dialog('destroy'); } }
	  });
	}

function fillPrivateMessagesData(data, caller) {
  caller.append("(");
  //Done this way because append won't allow open and close tags in separate appends
  if (data.totalNew > 0) {
    caller.append("<span style='font-weight:bold;color:#ff0000;'>" + data.totalNew + "</span>");
  } else {
	  caller.append(data.totalNew);
  }
  
  caller.append('/')
  caller.append(data.totalNew + data.totalRead)
  caller.append(")");
}
          $(document).ready(function() {
            loadUserPrivateMessages(729358);
          });
        </script>
      <!-- GUS -->

<!-- Global Navigation / Start //-->
<script language="Javascript">
  var isLoggedIn = true;

  function logoutEAStore() {
    var imgURL = document.getElementById("hiddenURL");

    imgURL.src = "https://profile.ea.com/logout.do";
    gotoLogoutURL();
  }

  function gotoLogoutURL() {
    window.location = "https://profile.ea.com/logout.do?surl=http://forum.ea.com/uk&remoteurl=http://forum.ea.com/uk/gusUser/logout.page";
  }
</script>
<div id="gus-header">
   <div id="gus-siteNav">
    <ul id="gus-nav">
      <li><a href="#" onclick="showMenu('EAMenu');return false;" id="EALink"></a>
        <ul id="EAMenu" style="left:-999px;">
          <li><a href="http://www.eagames.co.uk">EA Games</a></li>
          <li><a href="http://www.eagames.co.uk/genre/sports-games">EA SPORTS</a></li>

          <li><a href="http://www.eamobile.com">EA Mobile</a></li>
            <li><a href="http://uk.pogo.com/">POGO.com</a></li>
        </ul>
      </li>
      <li><a href="http://www.eagames.co.uk" id="WorldLink"></a></li>
        <!-- Language Selector -->
        <li>
          <a href="#" onclick="showMenu('EATerritoryMenu');return false;" id="EATerritory" style="background-image:url(http://cdn.forum.ea.com/uk/templates/default/ea/images/locale_selector/en_GB_menu.png?v2.25.1)"></a>

          <ul id="EATerritoryMenu" style="left: -999px;">
            <li><a class="flag us" href="http://forum.ea.com/eaforum">United States/Canada</a></li>
            <li><a class="flag de" href="http://forum.ea.com/de">Deutschland</a></li>
            <li><a class="flag fr" href="http://forum.ea.com/fr">France</a></li>
            <li><a class="flag it" href="http://forum.ea.com/it">Italy</a></li>
            <li><a class="flag mx" href="http://forum.ea.com/mx">Mexico</a></li>

            <li><a class="flag pl" href="http://forum.ea.com/pl">Poland</a></li>
            <li><a class="flag es" href="http://forum.ea.com/es">Spain</a></li>
            <li><a class="flag gb" href="http://forum.ea.com/uk">United Kingdom</a></li>
          </ul>
        </li>
    </ul>
    <div id="nationPersona">

      <a href="" onclick="showPersona('persistentNation'); return false;"><span>Welcome,</span>
        FIFA_FONZIE
      </a>
    </div>
    <div id="nationLogout">
      <a href="https://profile.ea.com/logout.do?surl=http://forum.ea.com/uk&remoteurl=http://forum.ea.com/uk/gusUser/logout.page" class="siteLink" id="nationLogoutLink">
        <span>Logout</span>
      </a>

    </div>

    <div id="persistentNation" class="extenededLayer" style="display:none;">

      <div class="enColumn" id="plTools">
               <div class="enLabel"><div>Nation Tools </div></div>
               <div class="plLinkList plColLeft">
                  <a href="https://profile.ea.com/myinfo.do?surl=http://forum.ea.com/uk/pm/sendTo/100.page&remoteurl=http://forum.ea.com/uk/gusUser/logout.page&locale=en_GB">My Account</a>
                  <!-- a href="https://www.ea.com/profile/my-games">Register Game</a-->

                  <a href="https://help.ea.com/">Support</a>
               </div>
               <div class="plColLeft">
                    <div class="plBtnContainer">
              <a class="plBtn" id="plBtnChange" href="https://profile.ea.com/selectprofile.do?surl=http://forum.ea.com/uk/pm/sendTo/100.page&remoteurl=http://forum.ea.com/uk/gusUser/login.page&locale=en_GB"></a>
          </div>
               </div>
            </div>

    </div>
   </div>
</div>


<span id="hiddenEAStoreLogout" style="visibility: hidden">
  <img id="hiddenURL" src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/spacer.gif?v2.25.1" style="visibility: hidden; display:block;" width="0" height="0"/>
</span>
<!-- Global Navigation / End //-->
      
      <!--[if lte IE 7]> <div align="center" style=' clear: both; height: 59px; padding:0 0 0 15px; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a></div> <![endif]--> 
      
      <div class="main">
        <table id="headerTable" width="970" border="0" align="center" cellpadding="0" cellspacing="0">

          <tr>
            <td class="mainHeader" align="center">
                <!-- EA Header -->
<!-- Header -->
    <div id="header" style="margin-bottom: 1px;">

        <!-- Inner Header -->
        <div id="navigation">
            <div class="wrapper">
                <h1><a class="pngFix" href="http://www.eagames.co.uk">Electronic Arts</a></h1>

                <!-- Utilities -->
                <div id="utils">
                </div><!-- End Utilities -->

                <!-- Main Navigation -->
                <ul id="menu">
                    <li class="drop games">
                        <a class="nav_games" href="http://www.eagames.co.uk/games"><span>GAMES</span></a>
                        <div class="sub_nav">

                            <div>
                                <div class="featuredAreas">
                                    <ul>
                                        <li>
                                            <a href="http://www.eagames.co.uk/games">Browse Games</a>
                                        </li>
                                        <li>
                                            <a rel="nofollow" target="_new" href="http://ea.onlineregister.com">Register My Game</a>

                                        </li>
                                        <li>
                                            <a ref="http://www.eagames.co.uk/free/play-free-games">Play Free Games</a>
                                        </li>
                                        <li>
                                            <a rel="nofollow" href="http://twitter.com/electronicarts">EA UK on Twitter</a>
                                        </li>
                                        
                                    </ul>

				                  			<div class="featuredGame">                    
				                    			<a href=""><img src="http://web-vassets.ea.com/Assets/Richmedia/Image/Battlefield-3-Highlighted-Image-93x66.jpg" alt="Battlefield-3-Highlighted-Image-93x66.jpg"/></a>
				                    			<a href="" title="Battlefield 3">
				                      				Battlefield 3
				                    			</a>
				                  			</div>
				                                                  </div>
                                <dl>
                                    <dt>Platform</dt>

                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/pc-games">PC Games </a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/wii-games">Wii&#153;</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/xbox-360-games">Xbox 360&#174;</a>

                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/ps3-games">PLAYSTATION&#174;3</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/ps2-games">PlayStation&#174;2</a>
                                    </dd>

                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/online-games">Online Games</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/platform/nds-games" rel="nofollow">Nintendo DS&#153;</a>
                                    </dd>
                                    <dd>
                                        <a rel="nofollow" href="http://www.eagames.co.uk/platform/iphone-games">iPhone/iPod Games</a>

                                    </dd>
                                    <dd>
                                        <a rel="nofollow" href="http://www.eagames.co.uk/platform/ipad">iPad Games</a>
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>Genre</dt>
                                    <dd>

                                        <a href="http://www.eagames.co.uk/genre/racing-games">Racing Games</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/genre/rpg-games">RPG Games</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/genre/shooting-games">Shooting Games</a>

                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/genre/puzzle-games">Puzzle Games</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/genre/strategy-games">Strategy Games</a>
                                    </dd>
                                    <dd>

                                        <a href="http://www.eagames.co.uk/genre/kids-games">Kids Games</a>
                                    </dd>
                                    <dd>
                                        <a href="http://www.eagames.co.uk/genre/music-games">Music Games</a>
                                    </dd>
                                    <dd>
                                        <a rel="nofollow" href="http://www.eagames.co.uk/genre/sports-games">Sports Games</a>

                                    </dd>
                                </dl>
                            </div>
                        </div>
                    </li>
                    <li>
                        <a class="nav_store1" href="http://www.eagames.co.uk/news/">NEWS</a>
                    </li>

                    <li>
                        <a class="nav_store1" rel="nofollow" href="http://forums.electronicarts.co.uk/">COMMUNITY</a>
                    </li>
                    <li class="drop studio">
                        <a class="nav_studio" href="http://www.eagames.co.uk/studio/"><span>MEDIA</span></a>
                        <div class="sub_nav">
                            <div>
                                <ul>

                                    <li>
                                        <a href="http://www.eagames.co.uk/videos/"><img alt="Videos" src="http://web-static.ea.com/gb/portal/images/icon_video.png?ver=643_en_GB"/><span>Videos</span>Check out our new behind the scenes and tutorials.</a>
                                    </li>
                                    <li>
                                        <a href="http://www.eagames.co.uk/images/"><img alt="Images" src="http://web-static.ea.com/gb/portal/images/icon_photo.png?ver=643_en_GB"/><span>Images</span>New screenshots that will blow you away!</a>
                                    </li>
                                    <li>

                                        <a href="http://www.eagames.co.uk/music/"><img alt="Music" src="http://web-static.ea.com/gb/portal/images/icon_music.png?ver=643_en_GB"/><span>Music</span>Listen to the best music of your favourite games.</a>
                                    </li>
                                    <li>
                                        <a href="http://www.eagames.co.uk/downloads/"><img alt="Downloads" src="http://web-static.ea.com/gb/portal/images/icon_downloads.png?ver=643_en_GB"/><span>Downloads</span>Downloads for your favourite games.</a>
                                    </li>
                                </ul>
                            </div>

                        </div>
                    </li>
                    <li>
                        <a class="nav_store1" rel="nofollow "href="http://eastore.ea.com/servlet/PromoServlet/promoID.47947700">ORIGIN</a>
                    </li>
                    <li>
                        <a class="nav_store1" rel="nofollow "href="http://support.electronicarts.co.uk/">HELP</a>
                    </li>

                    
                </ul>
                <!-- End Main Navigation -->
                <br class="clear" />

            </div>
        </div><!-- End Inner Header -->
    </div><!-- End Header -->
&nbsp;            </td>
          </tr>

        </table>
        <table id="contentTable" width="970" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="mainBorder"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/spacer.gif?v2.25.1" class="mainBorderSp" /></td>
            <td class="mainBody">
              <!-- table with FORUM content-->
              <table id="forumContentTable" width="850" border="0" align="center" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>

                    <td>
                      <table width="850" border="0" cellpadding="0" cellspacing="0" align="center">
                        <tbody>
                          <tr>
                            <td width="850" align="center" valign="middle">
                              <table cellspacing="0" cellpadding="2" border="0">
                                <tbody>
                                  <tr>
                                    <td valign="top" nowrap="nowrap" align="center">&nbsp;

                                      
                                      <span class="mainmenu">
                                        <a id="search" class="mainmenu" href="/uk/search/filters.page">
                                          <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_search.gif?v2.25.1" alt="[Search]"/>&nbsp;
                                          <b>Search</b>
                                        </a> &nbsp;
                                          <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_recentTopics.gif?v2.25.1" alt="[Recent Topics]" />
                                          <a id="latest" class="mainmenu" href="/uk/recentTopics/list.page">Recent Topics</a> &nbsp;

                                          <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/folder_hot.gif?v2.25.1" alt="[Hottest Topics]" width="12" height="13" />
                                          <a id="hottest" class="mainmenu" href="/uk/hottestTopics/list.page">Hottest Topics</a> &nbsp;
                                          <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_members.gif?v2.25.1" alt="[Members]" />&nbsp;
                                          <a id="latest2" class="mainmenu" href="/uk/user/list.page">Member Listing</a> &nbsp;
                                          <span class="mainmenu"> <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_groups.gif?v2.25.1" alt="[Groups]" />&nbsp;<a id="backtosite" class="mainmenu" href="/uk/categories/list.page">Back to EA Forum Index</a>&nbsp;
                                          <br/>

                    
                                    
                                          <a id="myprofile" class="mainmenu" href="/uk/user/edit/729358.page"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_profile.gif?v2.25.1" border="0" alt="[Profile]" /> My Profile</a>&nbsp;
                                          <a id="threadsubscribe" class="mainmenu" href="/uk/topicSubscription/list/729358.page"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_minipost.gif?v2.25.1" border="0" alt="[Subscribe]" /> My Subscriptions</a>&nbsp;
                                            <a class="mainmenu" href="/uk/bookmarks/list/729358.page"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_minipost.gif?v2.25.1" alt="[Bookmark]" width="12" height="13" /> My Bookmarks</a>&nbsp;
                                          <a id="privatemessages" class="mainmenu" href="/uk/pm/inbox.page"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_mini_message.gif?v2.25.1" border="0" alt="[Message]" />
                                             Private Messages
                                          </a>&nbsp;

                                      </span>
                                
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>

                    </td>
                  </tr>
                  <tr>
                    <td>                      
                        <style type="text/css">@import url( http://cdn.forum.ea.com/uk/templates/default/js/jquery/jquery-ui.css?v2.25.1 );></style>
<script type="text/javascript" src="http://cdn.forum.ea.com/uk/templates/default/js/announcements.js?v2.25.1"></script>
<script type="text/javascript" src="http://cdn.forum.ea.com/uk/templates/default/js/jquery/jquery.newsticker.pack.js?v2.25.1"></script>
<script type="text/javascript" >
$(document).ready(function() {
  //Passing this in here as it doesn't get evaluated in the js file
  return displayAnnouncements("/uk/announcements/list.page");
});
</script>
<div id="announcements-wrapper">

<ul id="news" style="display:none; list-style-type: none"/>  
</div>                      	<style type="text/css">@import url( http://cdn.forum.ea.com/uk/templates/default/js/jquery/jquery-ui-1.7.3.custom.css?v2.25.1 );></style>  

<script type="text/javascript">
var CONTEXTPATH = "/uk";
var SERVLET_EXTENSION  = ".page";
</script>

<style type="text/css">@import url( http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/styles/tabs.css?v2.25.1 );</style>
<style type="text/css">@import url( http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/styles/SyntaxHighlighter.css?v2.25.1 );</style>
<script type="text/javascript" src="http://cdn.forum.ea.com/uk/templates/default/js/post.js?v2.25.1"></script>

<script type="text/javascript">
// Helpline messages
b_help = "Bold Text: [b]Text[/b]  (alt+b)";
i_help = "Italic Text: [i]Text[/i]  (alt+i)";
u_help = "Underline Text: [u]Text[/u]  (alt+u)";
j_help = "Center: [center]Center[/center]  (alt+j)";
q_help = "Quote: [quote]Text[/quote]  (alt+q)";
c_help = "Code: 
[code]
Code
[/code]  (alt+c)";
l_help = "List: [list][li]Text[/li][/list] (alt+l)";
p_help = "Insert Image: [img]http://wwww.xxxx.com/img.ext[/img]  (alt+p)";
w_help = "Insert URL: [url]http://url[/url] / [url=http://url]URL Description[/url]  (alt+w)";
a_help = "Close all bbcode marks";
s_help = "Color: Text  Tip: can also use color=#FF0000";
f_help = "Font: [size=x-small]Small Text";
g_help = "Google: [google]A search phrase[/google]";
y_help = "Youtube: [youtube]Youtube video URL[/youtube]";
k_help = "Flash: [flash]Flash movie URL[/flash]";
v_help = "WMV: [wmv]WMV video URL[/wmv]";
function showEmail(beforeAt, afterAt)
{
	return beforeAt + "@" + afterAt;
}

var starOn = new Image();
starOn.src = "http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/star_on.gif?v2.25.1";

var starOff = new Image();
starOff.src = "http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/star_off.gif?v2.25.1";

function writeStars(q, postId)
{
	for (var i = 0; i < 5; i++) {
		var name = "star" + postId + "_" + i;
		document.write("<img name='" + name + "' alt='*' />");
		document.images[name].src = q > i ? starOn.src : starOff.src;
	}
}

function addBookmark(relationType, relationId)
{
	var w = window.open('/uk/bookmarks/insert/' + relationType + '/' + relationId + '.page', 'bookmark_add', 'width=700, height=200, scrollbars=auto, resizable=true');
	w.focus();
}

function reportPost(postId, startPage) {
  if (startPage === undefined) {
    startPage = 0;
  }
  var w = window.open('/uk/reportPosts/report/' + postId + '.page' + '?start=' + startPage, 'report_post', 'width=700, height=300, scrollbars=auto, resizable=true');
  w.focus();
}


function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}

function loadUserPrivateMessages(userId) {
  var requestUrl = "/uk/infractions/stats.page";
  $.ajax({
    type: 'POST',
    data: {'module':'pm' , 'action':'stats','user_id': userId},
    url: requestUrl,
    success: function(data, textStatus, XMLHttpRequest) { fillPrivateMessagesData(data, this.context);},
    error: function(XMLHttpRequest, textStatus, errorThrown) {showErrorMessage(textStatus);},
    dataType: 'json',
    context: $("#privatemessages")
  });
}

function showErrorMessage(data){
	  $("#spamRequest").dialog({ 
	    title: data.message,
	    resizable: false,
	    buttons: { "Close": function() { $(this).dialog('destroy'); } }
	  });
	}

function fillPrivateMessagesData(data, caller) {
  caller.append("(");
  //Done this way because append won't allow open and close tags in separate appends
  if (data.totalNew > 0) {
    caller.append("<span style='font-weight:bold;color:#ff0000;'>" + data.totalNew + "</span>");
  } else {
	  caller.append(data.totalNew);
  }
  
  caller.append('/')
  caller.append(data.totalNew + data.totalRead)
  caller.append(")");
}
</script>

  <script type="text/javascript">
    $(document).ready(function() {
    });
  </script>

<script type="text/javascript">
<!--
function buildBccDisplay(){
 $("#bccUsernames").children().remove();
 if(document.forms['post'].bccUsers.value.length > 0) {
 	var tokens = document.forms['post'].bccUsers.value.split( ":" ); 	
 	for ( var i = 0; i < tokens.length; i++ ) {
 		if ( tokens[ i ].length > 0) { 
	    	var keyValues = tokens[ i ].split(",");
	    	$("#bccUsernames").append(
	    	"<li style=\"display:inline-block\" class=\"catlist2 gen\">" + keyValues[1] +
	    	"&nbsp;" +
	    	"<a class=\"gensmall\" href=\"#\" onclick=\"removeBccUser(" + 
	    	keyValues[0] + 
	    	",'" + 
	    	keyValues[1] + 
	    	"');\">Delete</a>" + 
	    	"&nbsp;&nbsp;</li>");
	    }
  	}
 }
}

function removeBccUser(id, name) {
	var startIndex = document.forms['post'].bccUsers.value.indexOf(id + "," + name);	
	
	if (startIndex > -1) {	    
		var prefix = document.forms['post'].bccUsers.value.substring(0,startIndex);
		
		var endIndex = document.forms['post'].bccUsers.value.indexOf(":", startIndex);
		
		if (endIndex != document.forms['post'].bccUsers.value.length -1) {
			var suffix = document.forms['post'].bccUsers.value.substring(endIndex+1);
			document.forms['post'].bccUsers.value = prefix + suffix;
		} else {			
			document.forms['post'].bccUsers.value = prefix;
		}
	}
	buildBccDisplay();
}

function newCaptcha()
{
  document.getElementById("captcha_img").src = "/uk/jforum.page?module=captcha&action=generate&timestamp=" + new Date().getTime();
}

function validatePostForm(f)
{
  if (f.subject.value == "") {
    alert("Subject empty, please enter a subject");
    f.subject.focus();
    
    return false;
  }
  
  if (f.message.value.replace(/^\s*|\s*$/g, "").length == 0) {
    alert("Empty message, please enter a message or quit.");
    f.message.focus();
    
    return false;
  }

  if (f.toUsername.value == "") {
    alert("No user specified, please enter a user to send the message to.");
    f.toUsername.focus();

    return false;
  }

  
  $("#icon_saving").css("display", "inline");
  $("#btnPreview").attr("disabled", "disabled");
  $("#btnSubmit").attr("disabled", "disabled").val("Saving...");
  
  return true;
}

function openFindUserWindow()
{
  var w = window.open("/uk/pm/findUser.page", "_findUser", "height=250,resizable=yes,width=400");
  w.focus();
}

function openFindBccUserWindow()
{
  var w = window.open("/uk/pm/findBccUser.page", "_findUser", "height=250,resizable=yes,width=400");
  w.focus();
}

function smiliePopup()
{
  var w = window.open("/uk/posts/listSmilies.page", "smilies", "width=300, height=300, toolbars=no, scrollbars=yes");
  w.focus();
}

-->
</script>




<form action="/uk/jforum.page" method="post" enctype="multipart/form-data" name="post" id="post" onsubmit="return validatePostForm(this); document.getElementById('btnSubmit').disabled=true; return true;">
<input type="hidden" name="action" value="sendSave" />
<input type="hidden" name="module" value="pm" />
<input type="hidden" name="preview" value="0"/>
<input type="hidden" name="bunker"/>
<input type="hidden" name="request_hash" value="" />

<input type="hidden" name="start" value="" />



<table cellspacing="0" cellpadding="10" width="100%" align="center" border="0">
  <tr>
    <td class="bodyline">
      
      <!-- Preview message -->
      <a name="preview"></a>
      <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0" style="display: none" id="previewTable">
        <tr>

          <th height="25" class="thhead">Preview</th>
        </tr>
        <tr>
          <td class="row1">
            <img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/icon_minipost.gif?v2.25.1" alt="Post" />
            <span class="postdetails" id="previewSubject"> Subject: </span>
          </td>

        </tr>
        <tr>
          <td class="row1" height="100%">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100%">
              <tr>
                <td><span id="previewMessage" class="postbody"></span></td>
              </tr>
            </table>
          </td>

        </tr>
        <tr>
          <td class="spacerow" height="1"><img src="http://cdn.forum.ea.com/uk/templates/default/skins/en_GB/en_GB_default/images/spacer.gif?v2.25.1" alt="" width="1" height="1" /></td>
        </tr>
      </table>
      <br clear="all" />

      <table cellspacing="2" cellpadding="2" width="100%" align="center" border="0">
        <tr>

          <td align="left">
            <span class="nav">
                <a class="nav" href="/uk/categories/list.page">Forum Index</a>

            </span>
          </td>
        </tr>
      </table>
    
      <table class="forumline" cellspacing="1" cellpadding="3" width="100%" border="0">

        <tr>
          <th class="thhead" colspan="2" height="25">
            <b>
                New Private Message
            </b>
          </th>
        </tr>

          <tr>
            <td class="row1" width="15%"><span class="gen"><b>To user</b></span></td>

            <td class="row2" width="85%">

              <input type="text" class="post" size="25" name="toUsername" value="EvilGearPL" disabled="disabled"/>&nbsp;
              <a class="gensmall" href="#" onclick="openFindUserWindow();">Open Addressbook</a>
              <input type="hidden" name="toUserId" value="100" />
            </td>
          </tr>          


        <tr>
          <td class="row1" width="15%"><span class="gen"><b>Subject</b></span></td>

          <td class="row2" width="85%">
            <span class="gen">
              <input class="subject" type="text" tabindex="2" maxlength="100" name="subject" value="" /> 
            </span>
          </td>
        </tr>

        <tr>
          <!-- Smilies -->
          <td class="row1" valign="top">

            <span class="gen"><b>Message body</b></span>

            <table cellspacing="0" cellpadding="0" border="0" align="center">
              <tr>
                <td valign="middle" align="center">
                  <br />
                  <table cellspacing="0" cellpadding="5" width="100" border="0">
                    <tr align="center">
                      <td class="gensmall" colspan="4"><b>Emoticons</b></td>

                    </tr>

                              <tr>
                            <td><a href="javascript:emoticon(':)');"><img src="http://forum.ea.com/uk/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /></a></td>
                            <td><a href="javascript:emoticon(':D');"><img src="http://forum.ea.com/uk/images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" /></a></td>
                            <td><a href="javascript:emoticon(':(');"><img src="http://forum.ea.com/uk/images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" /></a></td>
                            <td><a href="javascript:emoticon(':mrgreen:');"><img src="http://forum.ea.com/uk/images/smilies/ed515dbff23a0ee3241dcc0a601c9ed6.gif" /></a></td>
                              </tr>
                              <tr>

                            <td><a href="javascript:emoticon(':-o');"><img src="http://forum.ea.com/uk/images/smilies/47941865eb7bbc2a777305b46cc059a2.gif"  /></a></td>
                            <td><a href="javascript:emoticon(':shock:');"><img src="http://forum.ea.com/uk/images/smilies/385970365b8ed7503b4294502a458efa.gif" /></a></td>
                            <td><a href="javascript:emoticon(':?:');"><img src="http://forum.ea.com/uk/images/smilies/0a4d7238daa496a758252d0a2b1a1384.gif" /></a></td>
                            <td><a href="javascript:emoticon('8)');"><img src="http://forum.ea.com/uk/images/smilies/b2eb59423fbf5fa39342041237025880.gif"  /></a></td>
                              </tr>
                              <tr>
                            <td><a href="javascript:emoticon(':lol:');"><img src="http://forum.ea.com/uk/images/smilies/97ada74b88049a6d50a6ed40898a03d7.gif" /></a></td>
                            <td><a href="javascript:emoticon(':x');"><img src="http://forum.ea.com/uk/images/smilies/1069449046bcd664c21db15b1dfedaee.gif"  /></a></td>
                            <td><a href="javascript:emoticon(':P');"><img src="http://forum.ea.com/uk/images/smilies/69934afc394145350659cd7add244ca9.gif" /></a></td>

                            <td><a href="javascript:emoticon(':oops:');"><img src="http://forum.ea.com/uk/images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" /></a></td>
                              </tr>
                              <tr>
                            <td><a href="javascript:emoticon(':cry:');"><img src="http://forum.ea.com/uk/images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" /></a></td>
                            <td><a href="javascript:emoticon(':evil:');"><img src="http://forum.ea.com/uk/images/smilies/2e207fad049d4d292f60607f80f05768.gif" /></a></td>
                            <td><a href="javascript:emoticon(':twisted:');"><img src="http://forum.ea.com/uk/images/smilies/908627bbe5e9f6a080977db8c365caff.gif" /></a></td>
                            <td><a href="javascript:emoticon(':roll:');"><img src="http://forum.ea.com/uk/images/smilies/2786c5c8e1a8be796fb2f726cca5a0fe.gif" /></a></td>
                              </tr>
                              <tr>

                            <td><a href="javascript:emoticon(':wink:');"><img src="http://forum.ea.com/uk/images/smilies/8a80c6485cd926be453217d59a84a888.gif" /></a></td>
                            <td><a href="javascript:emoticon(':!:');"><img src="http://forum.ea.com/uk/images/smilies/9293feeb0183c67ea1ea8c52f0dbaf8c.gif" /></a></td>
                            <td><a href="javascript:emoticon(':?');"><img src="http://forum.ea.com/uk/images/smilies/136dd33cba83140c7ce38db096d05aed.gif" /></a></td>
                            <td><a href="javascript:emoticon(':idea:');"><img src="http://forum.ea.com/uk/images/smilies/8f7fb9dd46fb8ef86f81154a4feaada9.gif" /></a></td>
                              </tr>

                    <tr align="center">
                      <td colspan="4">
                        <span class="nav"><a href="#" onclick="smiliePopup();return false;">More smilies</a></span>

                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>

          <!-- BB Codes, textarea -->

          <td class="row2" valign="top">
            <div class="gen">
              <table cellspacing="0" cellpadding="2" border="0" width="100%">
                <!-- bb code -->
                <tr valign="middle">
                  <td class="bbcode-tags">
                    <input class="button bbcode-tag-bold" onmouseover="helpline('b')" style="FONT-WEIGHT: bold; WIDTH: 30px" accesskey="b" onclick="bbstyle(0)" type="button" value=" B " name="addbbcode0" /> 
                    <input class="button bbcode-tag-italics" onmouseover="helpline('i')" style="WIDTH: 30px; FONT-STYLE: italic" accesskey="i" onclick="bbstyle(2)" type="button" value=" i " name="addbbcode2" /> 
                    <input class="button bbcode-tag-underline" onmouseover="helpline('u')" style="WIDTH: 30px; TEXT-DECORATION: underline" accesskey="u" onclick="bbstyle(4)" type="button" value=" u " name="addbbcode4" />
                    <input class="button bbcode-tag-centeralignment" onmouseover="helpline('j')" style="WIDTH: 60px" accesskey="j" onclick="bbstyle(24)" type="button" value=" Center " name="addbbcode24" />

                    <input class="button bbcode-tag-quote" onmouseover="helpline('q')" style="WIDTH: 50px" accesskey="q" onclick="bbstyle(6)" type="button" value="Quote" name="addbbcode6" /> 
                    <input class="button bbcode-tag-code" onmouseover="helpline('c')" style="WIDTH: 40px" accesskey="c" onclick="bbstyle(8)" type="button" value="Code" name="addbbcode8" />
                    <input class="button bbcode-tag-list" onmouseover="helpline('l')" style="WIDTH: 40px" accesskey="l" onclick="bbstyle(10)" type="button" value="List" name="addbbcode10" />
                    <input class="button bbcode-tag-img" onmouseover="helpline('p')" style="WIDTH: 40px" accesskey="p" onclick="bbstyle(12)" type="button" value="Img" name="addbbcode12" />
                    <input class="button bbcode-tag-url" onmouseover="helpline('w')" style="WIDTH: 40px" accesskey="w" onclick="bbstyle(14)" type="button" value="URL" name="addbbcode14" />
                    <input class="button bbcode-tag-google" onmouseover="helpline('g')" style="WIDTH: 50px" accesskey="g" onclick="bbstyle(16)" type="button" value="Google" name="addbbcode16" />
                    <input class="button bbcode-tag-youtube" onmouseover="helpline('y')" style="WIDTH: 60px" accesskey="y" onclick="bbstyle(18)" type="button" value="Youtube" name="addbbcode18" />
                    <input class="button bbcode-tag-flash" onmouseover="helpline('k')" style="WIDTH: 40px" accesskey="k" onclick="bbstyle(20)" type="button" value="Flash" name="addbbcode20" />
                    <input class="button bbcode-tag-wmv" onmouseover="helpline('v')" style="WIDTH: 40px" accesskey="v" onclick="bbstyle(22)" type="button" value="WMV" name="addbbcode22" />

                  </td>
                </tr>
                
                <!-- Color, Fonts -->
                <tr>
                  <td>
                    <span class="genmed">&nbsp;Text Color: 
                    <select id="bbCodeTextColor" name="addbbcode24">
                      <option class="genmed" style="COLOR: black; BACKGROUND-COLOR: #fafafa" value="#444444" selected="selected">Default</option> 
                      <option class="genmed" style="COLOR: darkred; BACKGROUND-COLOR: #fafafa" value="darkred">Dark Red</option> 
                      <option class="genmed" style="COLOR: red; BACKGROUND-COLOR: #fafafa" value="red">Red</option> 
                      <option class="genmed" style="COLOR: orange; BACKGROUND-COLOR: #fafafa" value="orange">Orange</option> 
                      <option class="genmed" style="COLOR: brown; BACKGROUND-COLOR: #fafafa" value="brown">Brown</option> 
                      <option class="genmed" style="COLOR: yellow; BACKGROUND-COLOR: #fafafa" value="yellow">Yellow</option> 
                      <option class="genmed" style="COLOR: green; BACKGROUND-COLOR: #fafafa" value="green">Green</option> 
                      <option class="genmed" style="COLOR: olive; BACKGROUND-COLOR: #fafafa" value="olive">Olive</option> 
                      <option class="genmed" style="COLOR: cyan; BACKGROUND-COLOR: #fafafa" value="cyan">Cyan</option> 
                      <option class="genmed" style="COLOR: blue; BACKGROUND-COLOR: #fafafa" value="blue">Blue</option> 
                      <option class="genmed" style="COLOR: darkblue; BACKGROUND-COLOR: #fafafa" value="darkblue">Dark Blue</option> 
                      <option class="genmed" style="COLOR: violet; BACKGROUND-COLOR: #fafafa" value="violet">Violet</option> 
                      <option class="genmed" style="COLOR: white; BACKGROUND-COLOR: #fafafa" value="white">White</option>

                      <option class="genmed" style="COLOR: black; BACKGROUND-COLOR: #fafafa" value="black">Black</option>
                    </select> 

                    &nbsp;Font:
                    <select onmouseover="helpline('f')" onchange="bbfontstyle('[size=' + this.form.addbbcode26.options[this.form.addbbcode26.selectedIndex].value + ']', '')" name="addbbcode26"> 
                      <option class="genmed" value="7">Very Small</option> 
                      <option class="genmed" value="9">Small</option> 
                      <option class="genmed" value="12" selected="selected">Normal</option> 
                      <option class="genmed" value="18">Big</option> 
                      <option class="genmed" value="24">Giant</option>

                    </select> 
                    </span>
                    <span class="gensmall"><a class="genmed" onmouseover="helpline('a')" href="javascript:bbstyle(-1)">Close Marks</a></span>
                  </td>
                </tr>

                <!-- Help box -->
                <tr>
                  <td>

                    <input name="helpbox" class="helpline" readonly="readonly" style="FONT-SIZE: 10px; WIDTH: 100%" value="Tip: Styles may be quickly applied to selected text" size="45" maxlength="100" /> 
                  </td>
                </tr>
                
                <!-- Textarea -->
                <tr>
                  <td valign="top">
                    <textarea class="message" onkeyup="storeCaret(this);" onclick="storeCaret(this);" onselect="storeCaret(this);" tabindex="3" name="message" rows="15"  cols="35"></textarea> 
                  </td>
                </tr>

              </table>
            </div> 
          </td>
        </tr>

        <!-- Options -->
        <tr>
          <td class="row1">&nbsp;</td>
          <td class="row2">
            <div id="tabs10">

              <ul>
                  <li target="postOptions" class="current"><a href="javascript:void(0);" onClick="activateTab('postOptions', this);"><span>Options</span></a></li>

              </ul>
            </div>

            <!-- Post Options -->
            <div id="postOptions" class="postTabContents">
              <div>

<table cellspacing="0" cellpadding="1" border="0" class="genmed">
      <tr>
    <td><input type="checkbox" id="disable_html" name="disable_html" checked="checked" /></td>
    <td><label for="disable_html">Disable HTML in this message</label></td>
    </tr>
  <tr>
    <td><input type="checkbox" id="disable_bbcode" name="disable_bbcode"  /> </td>
    <td><label for="disable_bbcode">Disable BB Code in this message</label></td>

  </tr>
  <tr>
    <td><input type="checkbox" id="disable_smilies" name="disable_smilies"  /> </td>
    <td><label for="disable_smilies">Disable smilies in this message</label></td>
  </tr>

    <tr>
      <td><input type="checkbox" id="attach_sig" name="attach_sig" checked="checked" /> </td>

      <td><label for="attach_sig">Append Signature ( Signatures can be modified on "My Profile" page )</label></td>
    </tr>


  	<input type="hidden" name="topic_type" value="0" />
</table>              </div>
            </div>

            <!-- Poll tab -->
           </td>

        </tr>



        
        <tr>
          <td align="center" height="28" colspan="2" class="catbottom">
            <input class="mainoption" id="btnPreview" tabindex="5" type="button" value="Preview" onclick="previewMessage();" /&gt

Right.
Inside that page is a form.
The action on the form says action="/uk/jforum.page"
...which will need to be converted to the full URI in your code starting with "http"
It has a bunch of variables
action=sendSave
module=pm
preview=0
bunker=
request_hash=
start=
toUserNaame=EvilGearPL
toUserId=100
subject={some subject goes here}
message={message body goes here} // will need to be converted to query-string allowable text


You will need to experiment to find which variables are optional.
So, using the same technique mentioned earlier, you can do the same thing.

i wouldnt have a clue fella =/ do u know any guide sites i can start learnings http reqesting and posting?

Actually, you can use my example and substitute in the names of the variables (and the URI).
You can use just the function with the WebClient to do this particular submission.

I only put in both methods for reference.

in your code there is no commands to replace HTML comments, u added variables into the URL but im really needing to change the HTML so i can add value to source.

You don't change the HTML for what you are trying to do. You just build a string that is the URI + a question-mark + the Query string

The query string will be each variable, an equal-sign and the value separated by ampersands.

One of the variables is the subject; one is the body. There are others that will need to be filled for it to work properly. All of those are mentioned in that other post.

Keep in mind: When you interact with the page manually, you do not modify the HTML; you only modify the values that are passed to the "action" page through the QUERY string.

finally starting to get your code now lol
one problem i cant still see what the output is after, and how do i know if its been sucsessfull post? (ive checked my outbox and inbox as thats my forum id) and im logged in in Internew explorer.

Here is my new code but not working, Appreciate all your help.

Module Module1
    Function pmMe(ByVal strsubject As String, ByVal strmessage As String, ByVal UserID As Char) As String
        Dim strRetVal As String = ""
        Dim strUri As String =
           "http://forum.ea.com/uk/pm/sendTo/" & UserID & ".page?" &
           "toUserId=" & UserID &
           "&subject=" & strsubject &
           "&message=" & strmessage
        Dim wc As New WebClient
        Dim fileWebIn As New StreamReader(wc.OpenRead(strUri))
        Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
        Dim strData As String
        While Not fileWebIn.EndOfStream
            strData = fileWebIn.ReadLine()
            If (rxGangsterName.IsMatch(strData)) Then
                strRetVal = rxGangsterName.Match(strData).Groups(1).Value
            End If
        End While
        fileWebIn.Close()
        Return strRetVal
    End Function


    Public Sub Main(ByVal sender As System.Object, ByVal e As System.EventArgs, ByVal X As Integer, ByVal XX As Integer)
        Console.WriteLine(pmMe("725790", "hiiiiiiiiiiiiiiiii", "this is my message to you!"(0)))
    End Sub
End Module

A couple of things. That rxGangsterName is looking for something specific that will not be on your forums page in the same manner.

After you remove the RegEx (for now), and step through this in the debugger, what lines are being read by the StreamReader?

Do you see something go by that looks like a failed login message?

i get errors from:

If (rxGangsterName.IsMatch(strData)) Then
            strRetVal = rxGangsterName.Match(strData).Groups(1).Value
         End If

Am i right in saying that $subject will replace the element value insubject to what i enter?

Also what is the Regex for? <b>(.* '.*' .*)</b> as i dont see this code in the gangster page. i understand that . = any char and * = any length, but what is it trying to find and what would i be using it to find.

Cheers dude.

Yes, you are correct.

[Regex]
That Regex looks for characters inside single-quotes surrounded by BOLD tags.
That gangster page returns the results in bold tags with the nickname in single-quotes.

ah ok fella, so how does the subject and message find the correct box to enter the information.

What is the purpose of the regex anyways is this just to confirm that is has been posted sucsessfully on the name that you posted?
Does it find "subject" and change the value since i added "&subject="

Can you confirm that it finds it by class or element id or w/e. what does it find the field by.

[This part is not about Regex]
It does not "find" anything; it TELLS the program what subject to use.
...same thing with all of the fields.

There is nothing graphical about it -- they're just settings that represent those edit fields and boxes-n-such.

[Regex]
I not only used to Regex to confirm the submission but to actually PARSE out the nickname and return it to me. http://xkcd.com/208/

ah ok fella. how come i cant view the end result as i did block out Exit Sub and still nothing. and where do i define the submit button?

cheers for all your explaining fella

Going to the URL (that's listed in the action=) is the same as pressing the submit button.

ah rite i changed to:

Imports System.Net
Imports System.Text.RegularExpressions
Imports System.IO


Module Module1
    Function pmMe(ByVal strsubject As String, ByVal strmessage As String, ByVal UserID As Char) As String
        Dim strRetVal As String = ""
        Dim strUri As String =
           "http://forum.ea.com/uk/jforum.page?" &
           "toUserId=" & UserID &
           "&subject=" & strsubject &
           "&message=" & strmessage
        Dim wc As New WebClient
        Dim fileWebIn As New StreamReader(wc.OpenRead(strUri))
        Dim rxGangsterName As New Regex("<b>(.* '.*' .*)</b>")
        Dim strData As String
        While Not fileWebIn.EndOfStream
            strData = fileWebIn.ReadLine()
            If (rxGangsterName.IsMatch(strData)) Then
                strRetVal = rxGangsterName.Match(strData).Groups(1).Value
            End If
        End While
        fileWebIn.Close()
        Return strRetVal
    End Function


    Public Sub Main(ByVal sender As System.Object, ByVal e As System.EventArgs, ByVal X As Integer, ByVal XX As Integer)
        Console.WriteLine(pmMe("725790", "hiiiiiiiiiiiiiiiii", "this is my message to you!"(0)))
    End Sub
End Module

which now includes the submit url. i know even the regex is wrong but its not working. can u see any faults. I cant see any message on program open or exit regarding the code. Also i cant see any messages sent or recieved in my inbox. Which is auto logged in in IE.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.