Jump to content
php.lv forumi

Recommended Posts

Posted

Vai tā var izveidot uz html , piemēram ir Lauciņš kur jāieraksta parole , pēc paroles ievadīšanas uzspiežot ok vari lejupielādēt failu , ja parole nepareiza nevari !

Posted
Tikai ar html nevar. Minimālais būtu ar JS.

 

 

Nu Java Script ari var izmantot , galvenais lai nav php , jo times.lv neatbalsta. Ka tad to var izdarit, varbut var kads iedot kadu linku , pamacibu !

Posted

Pamēģini kko tādu. Izmantoju jquery. Ja kods neiet, nāksies palīdzēt sev pašam.

<input type="text" id="key" />
<button onclick="parbaudit_key()">spied, lai iegūtu</button>
<div id="links"></div>
<script>
function parbaudit_key()
{
var key = $("#key").val();

if(key == '13337')
{
$("#links").html("<a href='#'>spied šeit, lai novilktu</a>");
}
}
</script>

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.

Loading...
×
×
  • Create New...