trouble with linking an account in php
<p>Hello I am trying to link an account through creating a similar form from one on site to log into (<code>http://1betvegas.com/default.aspx</code>).  I am creating an interface where you will be able to link your account without actually having to go to site and you will be able to make bets and everything through interface.  </p>

<p>My issue is that when I am sending over the data it is not logging in and I think it might have to do with the <code>onkeypress()</code> in the form section, but not to sure.</p>

<p>Code: </p>

<pre><code>&lt;form name='aspnetForm' method='post' action='http://1betvegas.com/default.aspx' onkeypress='javascript:return WebForm_FireDefaultButton(event, 'ctl00_MainContent_ctlLogin_BtnSubmit')' id='aspnetForm' style='margin: 0 0 0 0;'&gt;
    &lt;table&gt;
        &lt;tr&gt;
            &lt;td&gt;
            username: 
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input name='ctl00$MainContent$ctlLogin$_UserName' type='text' size='15' id='ctl00_MainContent_ctlLogin__UserName' accesskey='u' tabindex='60' class='login_input'&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
            password: 
            &lt;/td&gt;

            &lt;td&gt;
            &lt;input name='ctl00$MainContent$ctlLogin$_IdBook' type='hidden' id='ctl00_MainContent_ctlLogin__IdBook'&gt;
            &lt;input name='ctl00$MainContent$ctlLogin$Redir' type='hidden' id='ctl00_MainContent_ctlLogin_Redir' value='wager/welcome.aspx'&gt;
                &lt;input name='ctl00$MainContent$ctlLogin$_Password' type='password' size='15' id='ctl00_MainContent_ctlLogin__Password' accesskey='p' tabindex='61' class='login_input'&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
        &lt;input type='submit' name='ctl00$MainContent$ctlLogin$BtnSubmit' value='Login' id='ctl00_MainContent_ctlLogin_BtnSubmit' class='login_input' style='text-transform: uppercase;'&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p>This code ---- all the input boxes and form are from the actual site.</p>
