search code adjust

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    search code adjust

    hi there i am needing to insert action=main on above code, the above code is a code which gives the url of searching mp3

    PHP Code:
    echo "<form method='get' action=''>&nbsp;<input type='text' name='search' value=''><input type='submit' value='Search'></form>"
    so i tried inserting

    PHP Code:
    echo "<form method='get' action=''>&nbsp;<input type='text' name='action=main&search' value=''><input type='submit' value='Search'></form>"
    but it gives some thing called
    PHP Code:
    index.php?action%3main%23search 
    can any one help me with this just needing the = and & to be correct!
    Last edited by pretend; 26.07.10, 02:06.
    Nice Effects

    #2
    <input type ="hidden" name="action" value="main"/>
    <input type ="hidden" name="search" value=""/>
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      this is how the result comes in url tab for the above code
      PHP Code:
      echo "<form method='get' action=''>&nbsp;<input type='text' name='action=main&search' value=''><input type='submit' value='Search'></form>"
      index.php?search=akon

      i want it to make it as

      index.php?action=main&search=akon

      so i tried inserting your code subzero it gives me parse error
      Nice Effects

      Comment


        #4
        Code:
        <input type ='hidden' name='action' value='main'/>
        <input type ='hidden' name='search' value=''/>
        You have ' Not " sorry lol

        But if you wish to search is best to use " then '
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          man i am still twisted you posted the same code again and saying me "not" sorry lol? i cant understand
          PHP Code:
          echo "<form method='get' action=''>&nbsp;<input type='action' name='search' value=''><input type='submit' value='Search'></form>"
          i am needing to make the url to appear after searching akon as above it only shows be as below
          Mp3 Searching
          i want it to be like this
          index.php?action=main&search=akon
          Nice Effects

          Comment

          Working...
          X