hello needing some help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syk
    New Member
    • Jan 2008
    • 2

    hello needing some help

    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
    Code:
    SSet HTML = WebBrowser1.Document
                HTML.All.Item("comment_body").Value = comment.Text
                HTML.All.Item("submit")(1).Click

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

    Code:
    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">
    </div>
    
    <br><a name="leave_comment">
    <form method=post action="/photo_comment.php">
    <input type=hidden name=sess value="49838">
    <input type=hidden name=id value="1460637733">
    <input type=hidden name=owner value="238385">
    <input type=hidden name=xcmd value="add">
    <table align=center>
    <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>
    <tr><td class="leave_comment_box_body"><textarea name="comment_body" rows=15 cols=75 wrap=soft></textarea>
    <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>
    <tr><td><center><input type=submit value=submit></td></tr>
    
    <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>
    </table>
    </form>
  • lotus18
    Contributor
    • Nov 2007
    • 865

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

    Rey Sean

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      syk, what programming language are you using? This is the Visual Basic forum.

      Comment

      • syk
        New Member
        • Jan 2008
        • 2

        #4
        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
        Code:
              SSet HTML = WebBrowser1.Document
        
                          HTML.All.Item("comment_body").Value = comment.Text
         
                          HTML.All.Item("submit")(1).Click

        Comment

        Working...