Tuesday, August 9, 2011

[Rails] Question about mechanize and input type image

Hello i'm having a issue trying to submit a form using mechanize. The
thing
is that the form don't have a submit button but a input type="image".

Someone knows how to do this with mechanize or if its not possible
with mechanize there is another library to do this?

This is the form im trying to send


<form action="index.php" method="post">
<tr>
<td class="inptext"><b>User name</b></td>

<td><input name="uname" size="10"></td>
</tr>

<tr>
<td class="inptext"><b>Password</b></td>
<td><input name="upass" size="10" type="password"></td>
</tr>

<tr>
<td align="center" colspan="2">

<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right"><input name="urem" type="checkbox"
value="remember"></td>
<td class="inptext">Remember me</td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2" align="center">
<input type="image" border="0" src="images/submit.gif">
</td>
</tr>
<tr>
<td colspan="2" align="center"><a class="TopNav"
href="http://www.sendsmsnow.com/forgetpass.php">Forgot
password?</a></td>
</tr>

</form>

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate