Friday, May 25, 2012

curl

iam currently developing a tool for autoposting in several sites... so iam using curl in php.. iam succeessful in automatic registering..but can't login because the login function is calling a javascript function..like
function login() {  	var loginForm = document.getElementById("loginForm");  	if (loginForm.username.value == "") {  		alert("Please enter your E-mail.");  		return false;  	}  	if (loginForm.password.value == "") {  		alert("Please enter your password.");  		return false;  	}  	loginForm.submit();  }
and form is like this:-
<formid="loginForm"action="http://www.pentimo.com/authenticate.php" method="post"> <input class="inputtext" style="width:100px" type="text" name="username" value=""/>
<label class="info_block_text" >Password:</label><input class="inputtext" style="width:100px" type="password" name="password" value=""/>
<a class="login_btn" onclick="login()" title="Click to login"></a>

</form>
can anyone tell how it can be done????pls..........


can

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: