Results 1 to 6 of 6

Thread: help me this to break

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    help me this to break

    how can i break or dropdown the $password22 variable
    im using the php combination of javascript this is only my problem ??? some experts help me thanks



    echo "<script type=\"text/javascript\">
    alert('$username11 $password22')
    </script>";

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: help me this to break

    I have no idea what you are talking about.

    Break what? Drop down what?

    By the way, never use echo() to output HTML.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Re: help me this to break

    the value variable of $password22 will be in the underneath the varible $username22

    something like this



    the value sample is &password22 == ooooo and the $username22 == pppppp it will be in the message box is


    oooooo
    pppppp


    but not oooooppppppp " thanks

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: help me this to break

    use \n in a string for a newline.

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Re: help me this to break

    it does not work i use already that


    like this


    echo "<script type=\"text/javascript\">
    alert('$username11 \n $password22')
    </script>";

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: help me this to break

    Oh, that's because you're using double quoted PHP strings. And you're still using echo(). I told you echo is bad and this is exactly why: it makes it hard to spot errors.

    Always do it like this:
    PHP Code:
    <script type="text/javascript">
      alert('<?php echo $username11 ?>\n<?php echo $password22 ?>');
    </script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width