Jump to content
GarryOne

Am ales bine culorile pentru site?

Recommended Posts

Posted (edited)

Inainte sa postezi un raspuns tampit ca fac offtopic gandestete ca vreau doar sa te ajut.

Deci ai putea face codul mai ordonat. Cu doar putin CSS poti face sa arate foarte bine.

Inca un sfat ai putea schimba la form

Din


Your Name.:
<input type="text" maxlength="40" size="18" name="nume">
<br>
Your e-mail:
<input type="text" maxlength="58" size="18" name="email">
<br>
Subject:
<input type="text" maxlength="70" size="28" name="subiect">
<br>
<br>
Type message: (
<i>max 500 chars</i>
)
<br>
<textarea rows="6" cols="35" name="mesaj"></textarea>
<br>
1536
<br>
Type captcha's chars:
<input type="text" maxlength="4" size="5" value="" name="anti_spam">
<br>
<input type="submit" name="submit" value="Send">

Ar putea fi elegant


<p class="input_row"><label>Your Name.:</label><input type="text" maxlength="40" size="18" name="nume"></p>
<p class="input_row"><label>Your e-mail:</label><input type="text" maxlength="58" size="18" name="email"></p>
<p class="input_row"><label>Subject:</label><input type="text" maxlength="70" size="28" name="subiect"></p>
<p>Type message: (<i>max 500 chars</i>)</p>
<textarea rows="6" cols="35" name="mesaj"></textarea>
<p class="captcha_code">1536</p>
<p class="input_row"><label>Type captcha's chars:</label><input type="text" maxlength="4" size="5" value="" name="anti_spam"></p>

<input type="submit" name="submit" value="Send">

Edit dupa 2 minute am uitat sa-ti spun

<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />

Urat , fa doua divuri , in unul din ele pune width sa impingi in jos pagina credca asta ai vrut sa faci. In 1998 credca era corect cum ai facut tu,dar acum e altceva :)

Edited by Robert1995
Posted

interesant captcha :)

uite un codul pentru captcha daca te gandesti vreodata sa-l schimbi pe al tau:

captcha.php


<?php session_start();
//imagecreatefrompng :: create a new image
//from file or URL
$img = imagecreatefrompng('poze/black.png');
//displaying the random text on the captcha
$numere = rand(100, 999);
$_SESSION['check'] = ($numere);
//The function imagecolorallocate creates a
//color using RGB (red,green,blue) format.
$white = imagecolorallocate($img, 255, 255, 255);
imagestring($img, 10, 8, 3, $numere, $white);
header ("Content-type: image/png"); imagepng($img);
?>

ai nevoie de o poza, in cazul nostru black.png de circa 40 x 20 care sa reprezinte background-ul ..

si verificare codului captcha:


if(($_POST['check']) == $_SESSION['check']) {

echo 'Trimite mesaj w/e';

}

unde $_POST['check'] este ceea ce introduce utilizatorul si $_SESSION['check'] este sesiunea definita in captcha.php similara cu numarul de pe imagine.

Este si un tutorial pe net cu acelasi exemplu de unde m-am inspirat si eu, numai ca asta e putin mai simplificat. Acum sper ca nu te-a deranjat raspunsul asta, insa ceea ce ai tu pe site nu aduce a captcha.

Bafta

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...