Some help with code needed

Discussion in 'JavaScript' started by vahing, Sep 22, 2009.

  1. #1
    Hello,

    I need to replace the first code snippet method (url input bar)

    <form method="post" action="http://domainnamr/index.php">
    <div valign="top" align="center">
    <div id="urlbox" align="left">
    <input id="url" type="text" name="q" value="" onFocus="this.select()" size="40" />
    <input name="submit" type="submit" class="button" id="go" value="" />
    </div>

    with the includes/process.php?action of this method here:

    </div>

    <form action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);" class="form">

    <input type="text" style="font-size:18px" name="u" id="input" size="40" class="textbox">
    <input type="submit" value="Surf Now!" class="button" style="height:2.5em; width:6em;">
    ...

    But I don't want to change the look of method 1.

    Thanks a lot!
     
    vahing, Sep 22, 2009 IP
  2. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think removing the style and class tags will do it. Without these tags, the new code will look like this:

    </div>
    
    <form action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);">
    
    <input type="text" name="u" id="input" size="40">
    <input type="submit" value="Surf Now!"> 
    Code (markup):
     
    ThomasTwen, Sep 26, 2009 IP