1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Basic Form Use 101: For (advanced) Dummies

Discussion in 'Programming' started by gemini181, Apr 14, 2007.

  1. #1
    Hi,

    This is very basic code for a search form
            <form name="form2" method="post" action="">
              <p><span class="sub5">SEARCH: </span> 
                <input name="textfield3" type="text" size="20" maxlength="20">
                <input name="imageField2" type="image" src="images/arrowovalb.gif" align="top" width="22" height="23" border="0">
                &nbsp; </p>
            </form>
    HTML:
    Now, I don't want to program searching the current site, how do I:
    1. Pass the keyword(s) entered to another URL
    2. and pre-input the words into a text field called '___' (search related topic)
    3. And what code is needed at the other site to input the 'data'

    This doesn't seen really advanced, I've just not done the details before.
    Thank you, very much.
     
    gemini181, Apr 14, 2007 IP
  2. Weizheng

    Weizheng Peon

    Messages:
    93
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1. <form name="form2" method="post" action="/processForm.php">

    2. <input value="xxxxx" name="textfield3" type="text" size="20" maxlength="20">

    3. processForm.php
     
    Weizheng, Apr 15, 2007 IP
    gemini181 likes this.
  3. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Nice
    ~~~~~~~
    I'll experiment, and enjoy seeing what happens.

    • I'm really close to understanding
    • The only part I'm not sure of
    • Will be easier to describe after I try it :confused:
    Nothing beats experience for really learning.
    Thanks :)
     
    gemini181, Apr 15, 2007 IP