Jump to content
php.lv forumi

Vajadziga palidziba


besonic

Recommended Posts

Vajaga tadu scriptinu ko iemaukt ieksha man ir viena aile un otra aile , bet ka lai uztaisa ta lai nevar submit ja vini abi sakrit analogiski?

 

 

piemers ta ka ieraksti divos laucinos parole, bet vinjs tevi nelaizh talak kamer nav ievadits abi vinadi, bet man vajaga tishi otradi nelaizh prom kamer nav ievadits divi analogiski,

ceru ka sapratat

 

thx ieprieksh

Link to comment
Share on other sites

Kaut kā šādi:

...
<form method="post" action="lapa_kura_sanem_datus.php" onsubmit="if(document.getElementById('lauks1').value == document.getElementById('lauks2').value){ alert('Lauki nedrīkst būt vienādi'); return false;}">
...
<input type="text" name="lauks1" id="lauks1"/><br/>
<input type="text" name="lauks2" id="lauks2"/><br/>
...

Link to comment
Share on other sites

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...