|
-
Dec 5th, 2003, 06:10 PM
#1
Thread Starter
Addicted Member
clicking a webpage button
hi, There is a login button on a website that i need to know how to click, i know how to put text in the textboxes but couldnt figure out how to click the button. heres the source:
PHP Code:
<html>
<head>
<title>Login</title>
</head>
<body bgcolor="#697d65">
<link REL="stylesheet" TYPE="text/css" HREF="../style.css"><p ID="text_r" align="center">
<link REL="stylesheet" TYPE="text/css" HREF="../style.css">
<!-- This is the first screen when a user sees when he is not logged in -->
<form action="/login/login.php" method="post"><input type="hidden" name="PHPSESSID" value="8d342904c976e03d62824cc588f1d7e8" />
<table align="center" border="0" cellspacing="0" cellpadding="0" width="135" bgcolor="#697d65">
<tr><td><span ID="text_r">Username:<br>
<input type="text" name="uname" maxlength="40" ID="textbox"><br>
Password:</span><br>
<input type="password" name="passwd" maxlength="50" ID="textbox">
</td></tr>
<tr><td colspan="2" align="right">
<input type="submit" name="submit" value="Login">
</td></tr>
</table>
</form>
<p align="center"><a href="../faq.html?PHPSESSID=8d342904c976e03d62824cc588f1d7e8" target="mainframe">Player's Guide</a></p>
</body>
</html>
-
Dec 5th, 2003, 06:30 PM
#2
Frenzied Member
hi, There is a login button on a website that i need to know how to click, i know how to put text in the textboxes but couldnt figure out how to click the button. heres the source:
I am assuming that "Put your mouse over the button and Just Click It" isn't the answer you are looking for????
What do you mean you "need to know how to click the button"
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Dec 5th, 2003, 06:55 PM
#3
Thread Starter
Addicted Member
I DONT want to have to physically click it, i want code that will click it.
-
Dec 5th, 2003, 07:31 PM
#4
you could set the focus to the webpage , then use SendKeys.Send("{ENTER}") , that would cause the submit button to be clicked.
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Dec 6th, 2003, 12:10 PM
#5
Thread Starter
Addicted Member
that whould work but whouldnt the user haveto keep the whole program in focus?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|