help to find javascript bugs

  • Status: Closed
  • Præmier: $20
  • Modtagne indlæg: 5
  • Vinder: draugoz

Konkurrence Instruktioner

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.

Anbefalede Evner

Arbejdsgiverfeedback

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

Profilbillede larryluu, Norway.

Bedste indlæg fra denne konkurrence

Se flere indlæg

Offentlig Præciserings Opslagstavle

  • draugoz
    draugoz
    • 3 år siden

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

    • 3 år siden
    1. ChiragLathiya
      ChiragLathiya
      • 3 år siden

      Thanks

      • 3 år siden
    2. ChiragLathiya
      ChiragLathiya
      • 3 år siden

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

      • 3 år siden
  • draugoz
    draugoz
    • 3 år siden

    ChiragLathiya, your solutions will refresh/reload page

    • 3 år siden
  • ChiragLathiya
    ChiragLathiya
    • 3 år siden

    Please check my new entry #3 :)

    • 3 år siden
  • ChiragLathiya
    ChiragLathiya
    • 3 år siden

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

    • 3 år siden
  • larryluu
    Konkurrenceafholder
    • 3 år siden

    hi what is the solution?

    • 3 år siden
  • ChiragLathiya
    ChiragLathiya
    • 3 år siden

    I have solution. Please message me.

    • 3 år siden

Vis flere kommentarer

Sådan kommer du i gang med konkurrencer

  • Opret din konkurrence

    Opret din konkurrence Hurtigt og nemt

  • Få tonsvis af indlæg

    Få tonsvis af indlæg Fra hele verden

  • Tildel det bedste indlæg

    Tildel det bedste indlæg Download filerne - Nemt!

Opret en Konkurrence Nu eller slut dig til os i dag!