Connecting Tech Pros Worldwide Forums | Help | Site Map

hello needing some help

syk syk is offline
Newbie
 
Join Date: Jan 2008
Posts: 2
#1: Jan 14 '08
ok i will be pasting the code i need some kind of help with
with this program i can log into the site using the form of my application but what im trying to do is read the <textarea> so the words i type in the form can be enterd into the text area and then clicking on submit button here is the code i have...... Ok In This Code Comment.Text is my hidden Text That Will Be Sent To The TextArea
Expand|Select|Wrap|Line Numbers
  1. SSet HTML = WebBrowser1.Document
  2.             HTML.All.Item("comment_body").Value = comment.Text
  3.             HTML.All.Item("submit")(1).Click

and here is the sites code am i adding the correct info

Expand|Select|Wrap|Line Numbers
  1. table align=center border="0" cellpadding="0" cellspacing="8" width="85%"><tr><td valign="top" width="60%"><br><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td style="background-color:#000066;padding:5"><a id="comments"></a><span class="viewimage_left_hdr">Comments on this photo:</span><br></td></tr><tr><td><div id="photo_comments">
  2. </div>
  3.  
  4. <br><a name="leave_comment">
  5. <form method=post action="/photo_comment.php">
  6. <input type=hidden name=sess value="49838">
  7. <input type=hidden name=id value="1460637733">
  8. <input type=hidden name=owner value="238385">
  9. <input type=hidden name=xcmd value="add">
  10. <table align=center>
  11. <tr><td style="font-size:14px; font-weight:bold" align="center">Comment on this photo:</td></tr><tr><td align="center">html comments OK</td></tr>
  12. <tr><td class="leave_comment_box_body"><textarea name="comment_body" rows=15 cols=75 wrap=soft></textarea>
  13. <tr><td>NOTE: If you post content that is offensive, adult, or NSFW (Not Safe For Work), your account will be deleted. [<a href="/bible.php#nsfw" style="color:red">?</a>]<br></td></tr>
  14. <tr><td><center><input type=submit value=submit></td></tr>
  15.  
  16. <tr><td valign="top" align="center"><br><table border=0 cellspacing=0 cellpadding=3><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td><font size=2>Spice up your comments with:</font></td><td><table border=0 cellspacing=0 cellpadding=2><tr><td><a href="/rdr/OUT-RY" target="_blank"><img src="/imgs/rockyou_placements.gif" border=0></a></td><td><strong><a href="/rdr/OUT-RY-GT" target="_blank">Glitter Text</a></strong> or <strong><a href="/rdr/OUT-RY-FN" target="_blank">Fun Notes</a></strong>!</td></tr></table></td></tr></table></td></tr><tr><td><a href="/rdr/OUT-Cy" target="_blank"><font size=1>Choose from over 50,000 comment images at <b>CommentYou.com</b>!</font></a></td></tr><tr><td><a href="/rdr/OUT-ProjPlay" target="_blank"><font size=1>Make Your Own Playlist at ProjectPlaylist.com!</font></a></td></tr><tr><td><a href="/vault.php"><font size=1>The VAULT-- Don't know what to put in your profile or comments?  Click here for ideas.</font></a></td></tr></table></td></tr>
  17. </table>
  18. </form>

lotus18's Avatar
Site Addict
 
Join Date: Nov 2007
Location: Zamboanga City, Philippines
Posts: 860
#2: Jan 15 '08

re: hello needing some help


Calling all moderators.... I think this thread should be moved to Web Development (php, html,asp...)

Rey Sean
Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#3: Jan 15 '08

re: hello needing some help


syk, what programming language are you using? This is the Visual Basic forum.
syk syk is offline
Newbie
 
Join Date: Jan 2008
Posts: 2
#4: Jan 15 '08

re: hello needing some help


the code is actully my login code for my vb project that im using to login into the site listed For My WebBrowser1. embeded into my form
Expand|Select|Wrap|Line Numbers
  1.       SSet HTML = WebBrowser1.Document
  2.  
  3.                   HTML.All.Item("comment_body").Value = comment.Text
  4.  
  5.                   HTML.All.Item("submit")(1).Click
Reply