User Profile

Collapse

Profile Sidebar

Collapse
Baul
Baul
Last Activity: May 27 '10, 02:44 PM
Joined: May 27 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Baul
    replied to How to call a javascript function from a php echo
    in PHP
    That's right, but since the op's headline is "Calling a javascript function from a php echo" I think he wants to do something more elaborated then just calling this little function.

    By the way, I don't think, that the php is the problem here.
    See more | Go to post

    Leave a comment:


  • Baul
    replied to How to pass information by clicking hyperlink?
    in PHP
    Hi,

    you have to get the reviewid from either the $_GET- or the $_REQUEST-Array:

    Code:
    $reviewid = intval($_REQUEST['reviewid'];
    $_REQUEST hold the values from $_GET and $_POST

    Now you have to use this value in your SQL-Query by adding something like
    Code:
    AND reviews.id = $reviewid
    Sorry, but I don't know anything about your database structure so I can't tell you if the field name rewiews.id...
    See more | Go to post

    Leave a comment:


  • Baul
    replied to How to call a javascript function from a php echo
    in PHP
    Re: Calling a javascript function from a php echo

    Hi,

    I have tried a your code and added the alertme function:
    Code:
    <head>
    <script type="text/javascript">
        alertme = function(){
            alert("me");
        }
    </script>
    </head>
    <?php
    echo
     '<tr>
     <td>
     <input title="Add New Link"
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...