AIUTOOOO! HTML PHP NN SO'! COME FARE ?!

richi99

Nuovo Utente
36
0
CPU
intel pentium 4
Scheda Madre
Asus P4SD-VL
HDD
750gb appena aggiornati
RAM
1 gb appena aggiornato
GPU
asus ati randeon 9200 se family overcloccata
Audio
casse integrate su schermo
Monitor
lcd 24" ACER
PSU
370w turst
Case
lian li
OS
windows xp professional
Ragazzi mi serve che mi scriviate del codice php o html.:inchino:

Vorrei un casella di ricerca che se un utente scrive un determinata parola ad esempio abc quelsta casella lo deve mandare in una pagina specifica.

Se invece sbaglia a scrivere stessa cosa ma in un' altra pagina.:sisi:

- - - Updated - - -

PIU' INDIZI ?

allora diciamo che questa cosa deve funzionare come un cerca
 

signore del tempo

Utente Èlite
3,228
491
CPU
Intel Core i5 4670K
Scheda Madre
Asus Z87-Plus
HDD
WD Caviar Green 500GB
RAM
G.Skill Ares 2x4GB 1600MHz
GPU
Sapphire 7850 1GB @ 1050MHz
Audio
Integrata
Monitor
Acer V193w
PSU
XFX ProSeries 550W Core Edition
Case
CM HAF 912 plus
OS
ArchLinux + KDE - Windows 10
Tipo quando fai una ricerca su google?
 

richi99

Nuovo Utente
36
0
CPU
intel pentium 4
Scheda Madre
Asus P4SD-VL
HDD
750gb appena aggiornati
RAM
1 gb appena aggiornato
GPU
asus ati randeon 9200 se family overcloccata
Audio
casse integrate su schermo
Monitor
lcd 24" ACER
PSU
370w turst
Case
lian li
OS
windows xp professional
si'

- - - Updated - - -

CMQ guarada che mi potevi scrivere anche su yahoo è l'havevo fatta anche li'
 

signore del tempo

Utente Èlite
3,228
491
CPU
Intel Core i5 4670K
Scheda Madre
Asus Z87-Plus
HDD
WD Caviar Green 500GB
RAM
G.Skill Ares 2x4GB 1600MHz
GPU
Sapphire 7850 1GB @ 1050MHz
Audio
Integrata
Monitor
Acer V193w
PSU
XFX ProSeries 550W Core Edition
Case
CM HAF 912 plus
OS
ArchLinux + KDE - Windows 10
?
Comunque, ti serve: html + javascript(ajax) + php(&mysql) o un altro linguaggio lato server.
Mi sembra che la libreria Dojo permetta questa ricerca in modo semplificato...
 

ertrophy

Nuovo Utente
63
6
CPU
intet i7 870
HDD
1tb
RAM
corsair 8gb xms3
GPU
asus nvidia 470
Monitor
Samsung
PSU
enermax
Case
coolermaster elite
OS
wind7 / Linux
dai un occhiata a questo script, non è mio e purtroppo ne ho perso la fonte ma è facile da utilizzare:

<body></body>

PHP:
<script  LANGUAGE="JavaScript" type="text/javascript">

    Keyword = new Object();
    Descrip = new Object();
    Address = new Object();

// Keyword[0] = n  (where n is the number of keywords which can be searched
Keyword[0] =5

// Each entry is split into
// Keyword[n] = text (where text is the keyword of which the entry is to
// be searched by  (type Keywords in lowercase)
// Descrip[n] = text (where text is the description associated to this entry
// Address[n] = text (where text is the URL associated to the entry
//  n is the entry number.

Keyword[1] = "editor"
Descrip[1] = "editor html"
Address[1] = "2html.htm"

Keyword[2] = "editor"
Descrip[2] = "editor css"
Address[2] = "2css.htm"

Keyword[3] = "java"
Descrip[3] = "effetti speciali con java"
Address[3] = "2java.htm"

Keyword[4] = "javascript"
Descrip[4] = "effetti speciali con javascript"
Address[4] = "2js.htm"

    function checkDatabase() {

      var Found = false
      var Item = document.forms.ricerca.searchfor.value.toLowerCase();

stats='toolbar=no,location=no,directories=no,status=no,menubar=no,height=300,width=300,'
stats += 'scrollbars=yes,resizable=yes' 
MsgBox = window.open ("","msgWindow",stats) 
MsgBox.opener = window;
MsgBox.opener.name = "opener";
MsgBox.document.write("<head><title>risultati ricerca<\/title><\/head>");
MsgBox.document.write ("<body bgcolor=#ffffff text=#000099 link=green vlink=orange alink=yellow><CENTER><H3><font face=Verdana>Risultati della ricerca<\/H3>") 
MsgBox.document.write ("<font size=3><center>Per la parola chiave:<br><B>  "+Item+"<\/B><\/center><hr width=50%><\/font><\/CENTER>");
        for (var i=1; i <= Keyword[0]; i++) {
        if(Item == Keyword[i]) {
          Found = true;
         MsgBox.document.write ("<li><font face=arial><font size=2>"+Descrip[i]+"<BR><A HREF="+Address[i]+" target='opener'>questo il link per richiamare la pagina<\/A><\/font><\/font>") 

        }
      }
      if(!Found)
MsgBox.document.write ("<font color=red><H4>Nessuna corrispondenza trovata, riprova con altra parola o sinonimo<\/H4><\/font>")

// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<form><center>") 
MsgBox.document.write ("<font size=2><font color=arial><INPUT type='button' value='Chiudi' onClick = 'self.close()'><\/font><\/font>") 
MsgBox.document.write ("<\/form>")
MsgBox.document.write ("<font face=arial size=1 color=black>created by adam allen <br>© All Rights Reserved<\/font><\/center>")
// There must be my notice above if you are to use this script legally.
// It took many hours work, fairs is fair, I just want that little line in
// and you get a fully working Search ENGINE, for FREE, on your site
// In Java Scripts as well, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
     }
   --> 
</script>


Modulo di testo

PHP:
<form name="ricerca" action="cerca">
    <font face="arial" size="-1"><b>Ricerca argomenti all'interno del sito :</b></font>
    <input type="text" name="searchfor" size="20"><input type="button" value="Cerca" onClick="checkDatabase()">
    <br><font color="gray" size="1" face="Arial"><b>Porta il cursore all'interno della casella, digita la parola da ricercare,  premi sul pulsante Cerca</b></font>
</form>

edit:script di adam allen
 
Ultima modifica:
  • Mi piace
Reazioni: richi99

richi99

Nuovo Utente
36
0
CPU
intel pentium 4
Scheda Madre
Asus P4SD-VL
HDD
750gb appena aggiornati
RAM
1 gb appena aggiornato
GPU
asus ati randeon 9200 se family overcloccata
Audio
casse integrate su schermo
Monitor
lcd 24" ACER
PSU
370w turst
Case
lian li
OS
windows xp professional
GRAZIE SEI FANTASTICO!!!
 

ertrophy

Nuovo Utente
63
6
CPU
intet i7 870
HDD
1tb
RAM
corsair 8gb xms3
GPU
asus nvidia 470
Monitor
Samsung
PSU
enermax
Case
coolermaster elite
OS
wind7 / Linux

richi99

Nuovo Utente
36
0
CPU
intel pentium 4
Scheda Madre
Asus P4SD-VL
HDD
750gb appena aggiornati
RAM
1 gb appena aggiornato
GPU
asus ati randeon 9200 se family overcloccata
Audio
casse integrate su schermo
Monitor
lcd 24" ACER
PSU
370w turst
Case
lian li
OS
windows xp professional
ma nn mi funziona molto bene
 

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!