Hacking and more...
HaCkinG CulT
|
Nou pe simpatie: inna_90 pe Simpatie
 | Femeie 23 ani Vrancea cauta Barbat 30 - 48 ani |
|
|
Hacking and more...ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
|
|
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?
_______________________________________ Always Expect The Unexpected!!!
|
|
| |
|
| #2 |
OSHOElite MemberDin: Cluj
Postari: 2069
|
|
|
| |
|
| #3 |
$-Geo-$Master of 127.0.0.1
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 
|
|
| |
|
| #4 |
|
|
<? $rand = "textul meu"; echo <b>$rand</b>; ?>
e buna si varianta mea 
|
|
| |
|
| #5 |
OSHOElite MemberDin: Cluj
Postari: 2069
|
|
|
| |
|
| #6 |
|
|
"" 
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
| |
|
| #7 |
|
|
ms $-Geo-$ & OSHO da link nu pot sa-l fac?
_______________________________________ Always Expect The Unexpected!!!
|
|
| |
|
| #8 |
ShockerSuper ModeratorDin: localhost
Postari: 2084
|
|
|
| |
|
| #9 |
OSHOElite MemberDin: Cluj
Postari: 2069
|
|
|
| |
|
| #10 |
|
|
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 ????
_______________________________________ Always Expect The Unexpected!!!
|
|
| |
|
| #11 |
|
|
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) 
|
|
| |
|
| #12 |
|
|
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!!!
|
|
| |
|
| #13 |
|
|
atunci deschizi scriptu php, dupa <? lasi un spatiu si pui codu html si gata, dupaia poti folosi variabila $rand
|
|
| |
|
| #14 |
|
|
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!!!
|
|
| |
|
| #15 |
OSHOElite MemberDin: Cluj
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 
_______________________________________
 IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
| |
|
| #16 |
|
|
nu merge uitaty aici ex: http://mark.bleu.ro/guest.php
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 
_______________________________________ Always Expect The Unexpected!!!
|
|
| |
|
| #17 |
|
|
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
|
|
| |
|
| #18 |
|
|
<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...
_______________________________________ Always Expect The Unexpected!!!
|
|
| |
|
| #19 |
|
|
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
|
|
| |
|
| #20 |
|
|
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!!!
|
|
| |
|
| #21 |
|
|
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
|
|
| |
|
| #22 |
|
|
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!!!
|
|
| |
|
| #23 |
|
|
php este interpretat doar de server,nu poti sa faci ce vrei tu sa faci.
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
| |
|
| #24 |
|
|
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!!!
|
|
| |
|
| #25 |
|
|
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
|
|
| |
|