Ben bir web sitesinde oturum açmak için C # kullanıyorum. Ben C # bit için yararlı bir kod örneği var, ama ben "username = kullanıcı_adım & password =" benzer bir biçimde PHP komut dosyası giriş parametreleri geçirmenizi gerektirir. Ben PHP bilmiyorum ne de komut erişimi var. Ne komut bekliyor parametreler biçimlendirme gelen anlamak için bir yolu var mı?
İşte benim C # kodu temeli bulunuyor: C# Login to Website via program
Şimdiden teşekkürler.
<form id="login" method="post" action="http://mysite.com/forums/index.php?app=core&module=global&section=login&do=process">
<input type="hidden" value="990ea6a14ea49e853634fbdc5015a024" name="auth_key">
<input type="hidden" value="http://www.mysite.com/" name="referer">
<div id="regular_signin">
<a id="_regularsignin"></a>
<h3 class="bar">Enter your sign in name and password</h3>
<ul>
<li class="field">
<label for="username">Username or email address:</label>
<input type="text" size="25" name="username" class="input_text" id="username">
</li>
<li class="field">
<label for="password">Password:</label>
<input type="password" size="25" name="password" class="input_text" id="password"><br>
<a title="Retrieve password" class="desc" href="http://mysite.com/forums/index.php?app=core&module=global&section=lostpass">I've forgotten my password</a>
</li>
</ul>
</div><hr>
<fieldset id="signin_options">
<legend>Sign in options</legend>
<ul>
<li class="field checkbox">
<input type="checkbox" class="input_check" value="1" name="rememberMe" checked="checked" id="remember">
<label for="remember">
Remember me<br>
<span class="desc">This is not recommended for shared computers</span>
</label>
</li>
<li class="field checkbox">
<input type="checkbox" class="input_check" value="1" name="anonymous" id="invisible">
<label for="invisible">
Sign in anonymously<br>
<span class="desc">Don't add me to the active users list</span>
</label>
</li>
</ul>
</fieldset>
<fieldset class="submit">
<input type="submit" value="Sign In" class="input_submit"> or <a class="cancel" title="Cancel" href="http://mysite.com/forums">Cancel</a>
</fieldset>
</form>