Hacking and more...
HaCkinG CulT
|
Lista Forumurilor Pe Tematici
|
Hacking and more... | Reguli | Inregistrare | Login
POZE HACKING AND MORE...
Nu sunteti logat.
|
Nou pe simpatie: AlessyaDaniela
| Femeie 24 ani Bucuresti cauta Barbat 25 - 50 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
deci e un cod ff simplu
<? $rand = textul meu; echo $rand; ?>
cum pot sa fac la echo variabila mea sa fie bold, link, alta culoare...
adik daca in html pui < b > pt link < url > pt link in php cum e?
Modificat de gaby_dylyu (acum 17 ani)
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
$-Geo-$
Master of 127.0.0.1
Inregistrat: acum 18 ani
Postari: 133
|
|
scuzatima ca ma bag peste OSHO dar vreu sai explic un pic lui gaby :in php poti include si cateva coduri Html .(<b> vine din html si in loc de <b> poti pune si altele <i> <h1> etc).Poate nu trebuia sa zic asta dar asa ma simpt si eu mai bine
|
|
pus acum 17 ani |
|
Zero_Cool
Pe lista neagra
Inregistrat: acum 17 ani
Postari: 796
|
|
<? $rand = "textul meu"; echo <b>$rand</b>; ?>
e buna si varianta mea
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
""
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
ms $-Geo-$ & OSHO da link nu pot sa-l fac?
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Shocker
Super Moderator
Din: localhost
Inregistrat: acum 18 ani
Postari: 2084
|
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
ms merge si o ultima intrebare
am asta in html
<form name="form1" method="post" action="guest.php"> <div align="center"> <p> Name:<input name="name" type="text" id="name" value="" size="20"> </p> <p> Mesaj:<textarea name="text" id="text" rows="10" cols="40"></textarea> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </div> </form>
pot sa o trec in php astfel incat butonul sa ia numele variabilei $rand ????
Modificat de gaby_dylyu (acum 17 ani)
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Zero_Cool
Pe lista neagra
Inregistrat: acum 17 ani
Postari: 796
|
|
la inceput pui include('pagina.php'); In pagina.php sa fie scrisa chestia cu $rand Iar in html folosesti de exemplu :
echo $rand;
e usor, da nu stiu sigur daca mere, am cam incurcat limbajele (php cu html)
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
pooi nu mere ca eu trebuie sa dau butonului submit numele $rand(numele variabilei mele din echo) si pt asta nu ma ajuta include...trebuie sa transform toata chestia din html in php am un editor de php dar nu vad greseala ...
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Zero_Cool
Pe lista neagra
Inregistrat: acum 17 ani
Postari: 796
|
|
atunci deschizi scriptu php, dupa <? lasi un spatiu si pui codu html si gata, dupaia poti folosi variabila $rand
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
pooi asta am facut dar nu-mi recunoaste editorul decat <form name="form1" method="post" action="guest.php">
din tot codul ca fiind ok restul nu sunt bine cu toate ca respecta tot... <input name="" type="text" id="" value="" size="">
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
OSHO
Elite Member
Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
Code:
<form name="form1" method="post" action="guest.php">
<div align="center">
<p>
Name:<input name="name" type="text" id="name" value="" size="20">
</p>
<p>
Mesaj:<textarea name="text" id="text" rows="10" cols="40"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="<?php echo $rand; ?>">
</p>
</div>
</form> |
Asa
Modificat de OSHO (acum 17 ani)
_______________________________________
IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
nu merge uitaty aici ex:
tot ce mai trebuie sa fac este sa-i aduag cumva valoarea type="submit" name="Submit" value=la value am pus guest.php unuia dintre linkuri(cel care corespunde cu $rand) celelalte vor da error
Modificat de gaby_dylyu (acum 17 ani)
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
Sa inteleg ca vrei sa faci un guestbook care salveaza mesajele local intr`un fisier,nu vrei sa folosesti o baza de date. Poti te rog sa`mi arati guest.php cum arata,pune aici sursa.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
<html>
<head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>GuestBook</title> </head>
<p><font color="#000066" face="Geneva, Arial, Helvetica, sans-serif">
<? $name = $_POST['name']; //getting the name from the name field of the form that we submitted to this .php application $text = $_POST['text']; //getting the text that user entered in the previous form he submitted with the name of text $ip_vizitator = $_SERVER['REMOTE_ADDR'];
$now = date('H:i:s Y-M-D');
$file="guestbook.txt"; //we make a variable of file so this is neater
$handle=fopen($file, "r+"); //we open the file $prevtext=fread($handle,filesize("$file")); //and read in everything there is
//I am aware this looks very confusing. BUt it really isnt. All that we are doing here is that we are making a new variable called //new so we can create the string that has to be ADDED to the old strings stored in guestbook.txt //So basically here it says New = Name + Text , but making it a little fancy, putting it in middle, making name bold, changing font //making the horizontal line, and spaces makes it look bad $new="<div align="center"> Posted by: <u><b>$name</b></u> from: la: $now<br> <p><font face="Fixedsys"> $text </font></p> <hr> </div>";
$total = $prevtext . $new; //we add the two like i said above this. TOTAL TEXT = The old text + New text. Makes sense fclose($handle); //we close the file for reading... could have done this above but it doesnt matter as long as you close it
echo "$total"; //we print the TOTAL for the user to see the whole guestbook
$handle=fopen($file, "w"); //we are gonna open the file again, but now not to read the old text, but store the new one fwrite($handle, $total); //we write the whole TOTAL in it. fclose($handle); //close the file ?>
<form name="form1" method="post" action="guest.php"> <div align="center"> <p> Name:<input name="name" type="text" id="name" value="" size="20"> </p> <p> Mesaj:<textarea name="text" id="text" rows="10" cols="40"></textarea> </p> <p> <? $rand = rand(1000,9999); $r = rand(1000,9999); $ra = rand(1000,9999); $ran = rand(1000,9999); echo "Security Code: <b>$rand</b><br><b><a href="guest.php">$r</a></b> <b><a href="guest.php">$rand</a></b> <b><a href="http://google.ro">$ra</a></b> <b><a href="http://google.ro">$ran</a></b>"; ?> stiu ca o sa ziceti sa iau unul deja facut... dar daca chiar nu o sa pot sa fac ce vreau o sa iau...
Modificat de gaby_dylyu (acum 17 ani)
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
incearca action="<?php echo $_SERVER[PHP_SELF]; ?>" si adauga un buton de submit...nu vad sa ai unul... si la sfarsit nu inteleg ce ai vrut sa faci....
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
pooi de fapt avea un buton si mergea totul ok... dar am vrt sa pun propietatile acelui buton pe un link
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
ca un sfat...sa stii ca e mult mai simplu sa`ti faci singur guestbook`ul cu stocare in baza de date.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
ok ms am o intreb stiti vreun prg cu care pot sa aranjez php in pagina? deci nu sa-l editez (nici nu prea stiu dar folosesc edit plus2) adik de ex sa zicem k am un counter , un login script , ceva random... ma rog mai multe scripturi si sa pot cum e la macromedia sa iao o poza sa o mut putin mai jos sau la stanga...sau un text ma rog ... exista asha ceva si pt codurile php???
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
php este interpretat doar de server,nu poti sa faci ce vrei tu sa faci.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
adik daca vreau sa pun un counter in mijlocul pagini nu se poate? sau sa pun un login script in dreapta sau stanga la fel? ma refer pe partea de designe trebuie sa se poata sa le aranjez cum vreau in pagina...
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
integrezi php si html si evident ca poti,creezi niste layouturi....niste tabele...pui un script acolo...un script aici....intelegi ce vreau sa spun?
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
poi cred k inteleg... dar nu e un prg in care sa pot face asta ? u cu ce prg lucrezi?
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
dreamweaver...si acolo unde vede ca e script php iti apare o iconita galbena pe care scrie php,si cu ajutorul codului html tu o plasezi acolo unde vrei in pagina.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|
gaby_dylyu
Old School Member
Inregistrat: acum 18 ani
Postari: 422
|
|
10x man asta vroiam sa aud
Modificat de gaby_dylyu (acum 17 ani)
_______________________________________ Always Expect The Unexpected!!!
|
|
pus acum 17 ani |
|
Maxxim
Bluffer
Inregistrat: acum 18 ani
Postari: 366
|
|
succes
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
pus acum 17 ani |
|