Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #487187

    In my contact form i would recieve php echo off in a field. At this moment I had a script in the form page like this:

    <script type=”text/javascript”> //<![CDATA[
    document.getElementById(“avia_artikel_1”).value = “[php]echo $_GET[‘artikel-id’];[/php]”;
    // ]]></script>

    Unfortannuly is after the update from the theme enfold this not possible. Please follow hidden link to see wat now is in the field.

    Can anyone help me?

    Kind regards.

    #487316

    Hey dekoff!

    I’m sorry but I don’t understand. Your javascript is going to change the value of one of the form elements to “[php]echo $_GET[‘artikel-id’];[/php]” and when I view your link that is exactly what’s happening.

    Are you embedding that script in a theme file and the PHP is not getting run? Your probably wanting something like this then.

    document.getElementById(“avia_artikel_1″).value = “<?php echo $_GET[‘artikel-id’];?>”;
    

    Regards,
    Elliott

    • This reply was modified 8 years, 8 months ago by Elliott.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.