Easy Script Question

Discussion in 'Programming' started by upnya, Dec 27, 2006.

  1. #1
    I Want to add a search box on my webpage that allows users to check the backlinks for a certain website. For example, they type the name of a site in the search box then it does a google search displying the linking sites to that URL.

    How would I code a search box field with a search button - then when the user types a url in the search box and presses "go" the script actually runs this google search:

    Link:www..nameofsite.com -and returns a google search results page

    Does this make sense? Would this be easy to do? Can someone paste the code in here for me?

    Thanks!!!
     
    upnya, Dec 27, 2006 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    <!-- BEGIN Developer Shedâ„¢ Network's Link Popularity -->
    <!-- Copyright 2006 Developer Shedâ„¢, Inc. All Rights Reserved -->


    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top">
    <table width="300" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="16" height="16"><img src="http://images.devshed.com/sc/seotools/image_01.gif" width="16" height="16"></td>
    <td width="130" height="16" background="http://images.devshed.com/sc/seotools/bckg06.gif"><img src="http://images.devshed.com/sc/seotools/spacer.gif" width="130" height="16"></td>
    <td width="118" height="16" background="http://images.devshed.com/sc/seotools/bckg06.gif"><img src="http://images.devshed.com/sc/seotools/spacer.gif" width="150" height="16"></td>
    <td width="40" background="http://images.devshed.com/sc/seotools/bckg06.gif"><img src="http://images.devshed.com/sc/seotools/spacer.gif" width="40" height="16"></td>
    <td width="18" height="16"><img src="http://images.devshed.com/sc/seotools/image_02.gif" width="16" height="16"></td>
    </tr>
    <tr>
    <td height="30" background="http://images.devshed.com/sc/seotools/bckg07.gif"> </td>
    <td class=toolbox width="*" bgcolor="#CCCCCC" colspan=2 valign=top>
    <B><font size=+1>Link Popularity Tool</font></b> © <a href="http://www.seochat.com">SEO Chat™</a>
    <font size="2" face="Courier New, Courier, mono">
    <form action="http://www.seochat.com/" method="GET" name="form"><input type=hidden name=go value=1><input tabindex=1 type="hidden" name="option" value="com_seotools"><input tabindex=2 type="hidden" name="tool" value="1"><p><b>URL</b><br>Valid URL to check<br><input type=text tabindex=3 name="url" size=32 value=""><p><b>Enter Captcha To Continue</b><br>To prevent spamming, please enter in the numbers and letters in the box below<br><input type=text tabindex=4 name="imageverify" size=32 value=""><input tabindex=5 type="hidden" name="timehsh" value="xZm/o7k="><p><img src=http://www.seochat.com/includes/showcaptcha.php?bd=tZirqb8= border=1><p><input tabindex=6 type=submit name="toolsubmit" id="toolsubmit" value="Check my Popularity"></form>
    </font>
    </td>
    <td width="40" valign="top" bgcolor="#CCCCCC"></td>
    <td width="18" background="http://images.devshed.com/sc/seotools/bckg03.gif"> </td>
    </tr>
    <tr>
    <td width="16"><img src="http://images.devshed.com/sc/seotools/image_03.gif" width="16" height="16"></td>
    <td colspan="3" width="*" height="16" background="http://images.devshed.com/sc/seotools/bckg04.gif"><img src="http://images.devshed.com/sc/seotools/spacer.gif" width="16" height="16"></td>
    <td width="18"><img src="http://images.devshed.com/sc/seotools/image_04.gif" width="16" height="16"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    <!-- END Developer Shedâ„¢ Network's Link Popularity -->
     
    frankcow, Dec 27, 2006 IP
  3. upnya

    upnya Active Member

    Messages:
    420
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks for this, however I'm wanting a unique code for this, not one pasted from another SEO site.

    Anyon else?
     
    upnya, Dec 27, 2006 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Barti1987, Dec 27, 2006 IP
  5. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #5
    very nice script!
    You may want to show people how to supply the $url variable though, like with a form input field
     
    frankcow, Dec 27, 2006 IP