Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 16:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HELP simple html i just totally forgot lmao been a while

Discussion on HELP simple html i just totally forgot lmao been a while within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
allizzel777's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 124
Received Thanks: 2
HELP simple html i just totally forgot lmao been a while

i have a website its not done at all, i want to change the search box and make it work... but when someone searches i want it to ONLY search MY SITE not Google or any other sites please help me here is the html i have. how can i make that without changing the look or adding radio buttons and make it search only my site?

<div id="search_box">
<form action="#" method="post">
<input type="text" value="Search on this website" name="q" size="10" id="searchfield" title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
<input type="submit" name="Search" value="" id="searchbutton" title="Search" />
</form>
</div>


Yea yea i know there is a way and its probably simple. i just totally forgot its been like 2 years since i used html or anythin and i cant remember please help ill put it in German as well



German

Ich habe eine Webseite seine nicht getan überhaupt, ich möchte das Suchfeld ändern und damit es funktioniert ... aber wenn jemand nach i sie nur suchen MY SITE wollen nicht Google oder anderen Websites bitte helft mir hier ist der html i haben. Wie kann ich sicherstellen, dass ohne das Aussehen oder das Hinzufügen von Radio-Buttons und machen sie zu suchen nur meine Website?


Yea yea Ich weiß, es ist ein Weg, und es ist wahrscheinlich einfacher. Ich vergaß völlig, es ist wie 2 Jahre her, seit ich html oder anythin verwendet und i cant remember bitte helfen Sie krank steckte es in Englisch als auch
allizzel777 is offline  
Old 07/02/2011, 09:38   #2
 
Project Rivalry's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,674
Received Thanks: 229
you need php .. to search
Project Rivalry is offline  
Old 07/02/2011, 12:07   #3
 
allizzel777's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 124
Received Thanks: 2
Quote:
Originally Posted by GAMER19951 View Post
you need php .. to search
no i mean something like this but without the radio button and i want it to automatically search my site

Code:
<form method="get" action="http://www.google.com/search">

<input type="text"   name="q" size="31"
 maxlength="255" value="" />
<input type="submit" value="Google Search" />
<input type="radio"  name="sitesearch" value="" />
 The Web
<input type="radio"  name="sitesearch"
 value="askdavetaylor.com" checked /> Ask Dave Taylor<br />

</form>
allizzel777 is offline  
Old 07/02/2011, 12:26   #4
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Code:
<form method="get" action="http://www.google.com/search">

<input type="text"   name="q" size="31"
 maxlength="255" value="" />
<input type="hidden"  name="sitesearch"
 value="[COLOR="Red"]mysite.com[/COLOR]" checked />
<input type="submit" value="Google Search" />

</form>
Replace "mysite.com" with whatever site you want Google to search.
ms​ is offline  
Old 07/02/2011, 12:47   #5
 
allizzel777's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 124
Received Thanks: 2
Quote:
Originally Posted by Disconnect View Post
Code:
<form method="get" action="http://www.google.com/search">

<input type="text"   name="q" size="31"
 maxlength="255" value="" />
<input type="hidden"  name="sitesearch"
 value="[COLOR="Red"]mysite.com[/COLOR]" checked />
<input type="submit" value="Google Search" />

</form>
Replace "mysite.com" with whatever site you want Google to search.
its not working for what i need it to work with do you think you can use team viewer and help me? but thats exactly what i wanted
allizzel777 is offline  
Old 07/02/2011, 13:12   #6
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
for a search on only your site you need php...your script give the parameter from sitesearch to googel.com
NotEnoughForYou is offline  
Old 07/02/2011, 13:15   #7
 
allizzel777's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 124
Received Thanks: 2
Quote:
Originally Posted by Disconnect View Post
Code:
<form method="get" action="http://www.google.com/search">

<input type="text"   name="q" size="31"
 maxlength="255" value="" />
<input type="hidden"  name="sitesearch"
 value="[COLOR="Red"]mysite.com[/COLOR]" checked />
<input type="submit" value="Google Search" />

</form>
Replace "mysite.com" with whatever site you want Google to search.
Quote:
Originally Posted by NotEnoughForYou View Post
for a search on only your site you need php...your script give the parameter from sitesearch to googel.com
i have php but disconnect has what i wanted but i cant get it to look like what i want do you think you can use team viewer and help me?
allizzel777 is offline  
Old 07/02/2011, 13:31   #8
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
has googel a api for this ? cause your script gives this information to googel and they have the php code for search on googel and normaly you need your own php code for your site
NotEnoughForYou is offline  
Old 07/02/2011, 18:27   #9
 
elite*gold: 0
Join Date: Oct 2008
Posts: 319
Received Thanks: 88
Quote:
Originally Posted by NotEnoughForYou View Post
for a search on only your site you need php...your script give the parameter from sitesearch to googel.com
Man kann auch die jeweilig geöffnete Seite ohne Probleme mit JavaScript auslesen,
und da PHP nicht die einzige Serverseitige Sprache ist stimmt das nicht so ganz (=

With google you can also search on a specified site. just type in the google searchbar
Code:
site:mysite.com searchstring
. connect this with your form and it should
work. but like NotEnoughForYou said a own search api is the best solution.

entschuldigt mein grässliches englisch
Fratyr is offline  
Old 07/03/2011, 12:19   #10
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
Quote:
Originally Posted by Fratyr View Post
Man kann auch die jeweilig geöffnete Seite ohne Probleme mit JavaScript auslesen,
und da PHP nicht die einzige Serverseitige Sprache ist stimmt das nicht so ganz (=

With google you can also search on a specified site. just type in the google searchbar
Code:
site:mysite.com searchstring
. connect this with your form and it should
work. but like NotEnoughForYou said a own search api is the best solution.

entschuldigt mein grässliches englisch
nur js kann man eben auch ausschalten was wiederum eine kleine gruppe von usern ausschließt.

Dass Googel das anbietet wusste ich nicht dann geht es natürlich auch so
NotEnoughForYou is offline  
Old 07/08/2011, 22:57   #11
 
allizzel777's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 124
Received Thanks: 2
well then can someone use team viewer and help me i really need to get this fixed and my contact form isn't sending an email to my email...



Contact Form:
Code:
<?php
$formMessage = "";
$senderName = "";
$senderEmail = "";
$senderphonenumber = "";
$senderMessage = "";

if ($_POST['username']) { // If the form is trying to post value of username field
 
    // Gather the posted form variables into local PHP variables
    $senderName = $_POST['username'];
    $senderEmail = $_POST['email'];
	$senderphonenumber = $_POST['Phone Number'];
    $senderMessage = $_POST['msg'];
    // Make sure certain vars are present or else we do not send email yet
    if (!$senderName || !$senderEmail || !$senderphonenumber || !$senderMessage) {
 
         $formMessage = "The form is incomplete, please fill in all fields.";
 
    } else { // Here is the section in which the email actually gets sent

        // Run any filtering here
        $senderName = strip_tags($senderName);
        $senderName = stripslashes($senderName);
        $senderEmail = strip_tags($senderEmail);
        $senderEmail = stripslashes($senderEmail);
		$senderphonenumber = strip_tags($senderphonenumber);
		$senderphonenumber = stripslashes($senderphonenumber);
        $senderMessage = strip_tags($senderMessage);
        $senderMessage = stripslashes($senderMessage);
        // End Filtering
        $to = "";         
        $from = $senderEmail;
        $subject = "You have a message from your website";
        // Begin Email Message Body
        $message = "
        Sender Name: $senderName
		Sender Phone Number: $senderphonenumber
        Sender Email: $senderEmail
		
		Message Start: 
		$senderMessage
        ";
        // Set headers configurations
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= "Content-type: text\r\n";
        $headers .= "From: $from\r\n";
        // Mail it now using PHP's mail function
        mail($to, $subject, $message, $headers);
        $formMessage = "Thanks, your message has been sent.";
        $senderName = "";
        $senderEmail = "";
        $senderMessage = "";
    } // close the else condition

} // close if (POST condition
?>
	  <form method="post" name="contact" action="#">
        
                                <label for="username">Name:</label> <input type="text" id="username" name="username" class="input_field" value="<?php echo $senderName; ?>" /> 
<label for="email">Email:</label> <input type="text" id="email" name="email" class="validate-email required input_field" value="<?php echo $senderEmail; ?>" />
                                
                                <label for="phone">Phone:</label> <input type="text" name="phone" id="phone" class="input_field" value="<?php echo $senderPhone; ?>" />
                                <label for="text">Message:</label> <textarea id="msg" name="msg" rows="0" cols="0"><?php echo $senderMessage; ?></textarea>

                                <br />
                                <input type="submit" class="submit_btn" name="submit" id="submit" value="Send" />
                              <input type="reset" class="submit_btn" name="reset" id="reset" value="Reset" />
                            
                            </form>
allizzel777 is offline  
Old 07/09/2011, 10:41   #12
 
elite*gold: 0
Join Date: Oct 2008
Posts: 319
Received Thanks: 88
You're working on the localhost right? You have to install a mail
server before you can send emails via php.
Fratyr is offline  
Old 03/15/2013, 23:29   #13
 
crazyjames's Avatar
 
elite*gold: 1
The Black Market: 100/0/0
Join Date: Oct 2011
Posts: 1,208
Received Thanks: 226
Click on my signature for help if u need it
crazyjames is offline  
Reply


Similar Threads Similar Threads
[HTML]HELP[/HTML]range hack and skill speed in extreme
08/21/2009 - Dekaron Private Server - 5 Replies
hey guys i need a little help about range hack and skill speed in extreme i already unpack the Data its all done..1! my problem is wer i can edit the range ang skill speed in extreme..! pls :):):):):)
pls help lmao
07/10/2009 - Dekaron Private Server - 0 Replies
Adresses to use: 0068834A 006FEBC5 THANKS IF I HELPED YOU AND I KNOW I DID I did everything with those codes! I searched them( only array of bytes worked) i add them manualy but idk 2 what i need to change them to :( pls some 1 help =(
Damn, I Totally Forgot...
07/09/2009 - Silkroad Online - 20 Replies
...how fucking awesome Archers are. Im currently playing on my Lv91 Archer at Sparta. His Build is going to be Pacheon 100, Fire 100, Light 80, Cold 20 Currently his Build is Pacheon 91, Fire 83, Light 80, Cold 20 due to farming. He is skilled like lolrko's Archer Guide. Anyways, could anyone please tell what the fuck happend to Archers ?! They own so bad.
Can anyone post the regular simple shadow? Forgot to make backup
10/20/2007 - Conquer Online 2 - 2 Replies
:eek: lol how stupid of me to forget to make backup
LMAO
04/30/2007 - Conquer Online 2 - 2 Replies
ok, i go in the market, I Say "Quitting Conquer, Selling lvl 128 Archer" somone asks how much, i say " A garment or 3kk i dont want much since im quitting" I trade, they give me a brown pheonix, I tell them some user and pass, And i get the garment!! people are so stupid.



All times are GMT +1. The time now is 16:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.