Jump to content

help me for login code


nekooee

Recommended Posts

Hello

I have problems when I login vbulletin sites. I used to "curl" code.

$post_field= 'username=nekooee&passworld=12345&submit=ok';
$ch=curl_int();
curl_setopt($ch, curlopt_url, www.domain.com/login.php?do=login);
curl_setopt($ch, curlopt_post, 1);
Curl_setopt($ch, curlopt_postfield, $post_fiels);
$result=curl_exec($ch);
curl_close($ch);  

 

 

Unfortunately, in the login form, "submit" dosn`t name.

please help me for login to vbulletin site.

Login form is vbulletin as follows:

<!-- login form -->
	<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
	<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=382"></script>
	<table cellpadding="0" cellspacing="3" border="0">
	<tr>
		<td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">User Name</label></td>

		<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
		<td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
	</tr>
	<tr>
		<td class="smallfont"><label for="navbar_password">Password</label></td>
		<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
		<td><input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td>
	</tr>

	</table>
	<input type="hidden" name="s" value="" />
	<input type="hidden" name="securitytoken" value="guest" />
	<input type="hidden" name="do" value="login" />
	<input type="hidden" name="vb_login_md5password" />
	<input type="hidden" name="vb_login_md5password_utf" />
	</form>
	<!-- / login form -->

 

 

example about vbulletin site:

http://www.hardforum.com

Link to comment
https://forums.phpfreaks.com/topic/190268-help-me-for-login-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.