help to find javascript bugs

  • Status: Closed
  • Hadiah: $20
  • Penyertaan diterima: 5
  • Pemenang: draugoz

Ringkasan Peraduan

need help to find out why my sendmail php script does not let me close a "close button in the security question

I have created a send php script with security questions. but do not get closed sumbit button see photo here: [login to view URL] Nothing Happens When pressing the code here

<div class="home-contact-from">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"><input type="text" class="form-control" id="formname" onclick="if(this.value=='Navn '){this.value='';}" onblur="if(this.value==''){this.value='Navn ';}" value="Navn "></div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"><input type="text" class="form-control" id="formemail" placeholder="Email"></div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<textarea class="form-control" id="formmsz" placeholder="Message..."></textarea>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"><input type="text" name = "formres" class="form-control" placeholder="Hva er 2+2?" id="num"></div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<input type="submit" value="Submit" onclick="showHint()">
</div>
</div>
</form>
<script>

function showHint() {
var formname = [login to view URL]("formname").value;
var formemail = [login to view URL]("formemail").value;
var formmsz = [login to view URL]("formmsz").value;
var num = [login to view URL]("num").value;
var xmlhttp = new XMLHttpRequest();
[login to view URL] = function() {
if ([login to view URL] == 4 && [login to view URL] == 200) {
[login to view URL]("txtHint").innerHTML = [login to view URL];
}
}
[login to view URL]("GET", "php/[login to view URL]" +formname+"&formemail="+formemail+"&formmsz="+formmsz+"&num="+num, true);
[login to view URL]();

}
</script>
Read the php code here [login to view URL]
fine shows anyone can tell me why I can not close sumbit button

live page can be found here:

[login to view URL]
go to the check in up menu when you end up at the bottom.

Kemahiran Disyorkan

Maklum balas Majikan

“very clever and quick I are looking forward to work more with him in the future”

Gambar Profil larryluu, Norway.

Penyertaan teratas dari peraduan ini

Lihat Lagi Entri

Papan Penjelasan Umum

  • draugoz
    draugoz
    • 3 years ago

    ChiragLathiya, solution has XSS vulnerability :) http://stackoverflow.com/questions/6080022/php-self-and-xss

    • 3 years ago
    1. ChiragLathiya
      ChiragLathiya
      • 3 years ago

      Thanks

      • 3 years ago
    2. ChiragLathiya
      ChiragLathiya
      • 3 years ago

      hey #draugoz i wanna talk with you. can you please reply here?

      • 3 years ago
  • draugoz
    draugoz
    • 3 years ago

    ChiragLathiya, your solutions will refresh/reload page

    • 3 years ago
  • ChiragLathiya
    ChiragLathiya
    • 3 years ago

    Please check my new entry #3 :)

    • 3 years ago
  • ChiragLathiya
    ChiragLathiya
    • 3 years ago

    can you message me? or i need to show solution here only?

    • 3 years ago
  • larryluu
    Penganjur Peraduan
    • 3 years ago

    hi what is the solution?

    • 3 years ago
  • ChiragLathiya
    ChiragLathiya
    • 3 years ago

    I have solution. Please message me.

    • 3 years ago

Tunjukkan lebih banyak komen

Bagaimana mula dengan peraduan

  • Paparkan peraduan anda

    Paparkan Peraduan Anda Cepat dan mudah

  • Dapatkan berjuta penyertaan

    Dapatkan Bertan-tan Penyertaan Dari serata dunia

  • Anugerahkan penyertaan terbaik

    Anugerahkan penyertaan terbaik Muat turun fail-fail - Mudah!

Paparkan Peraduan Sekarang atau Sertai kami Hari Ini!