Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8767105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:43:29+00:00 2026-06-13T16:43:29+00:00

This is what I am trying to do: I have a data.php page. In

  • 0

This is what I am trying to do:

I have a data.php page.

In this page I have mostly HTML. Within the HTML I have some PHP code, designated by

<?php   

?>

Now, I am trying to insert JavaSript with in the PHP; something like below:

<?php   
     <script type="text/javascript">

     </script>

?>

But I get ‘syntax error’ notification from Adobe Dreamweaver.

What am I doing wrong here?

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:43:30+00:00Added an answer on June 13, 2026 at 4:43 pm

    You need to end your PHP and then start the Javascript

    <?php
    ...php here...
    ?>
         <script type="text/javascript">
    
         </script>
    
    <?php
    ... more php ...
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From a PHP page, I'm trying to POST some data to another PHP page
I am trying to have a tree display custom data that looks like this.
I have this issue trying to get all the text nodes in an HTML
I am trying to post a form to another php page. The posted data
I'm trying to open a socket -> PHP Page to being in data from,
I am practicing with PHP and AJAX but I have some problems! I'm trying
I have a php page that recalls data from an SQL table, and then
I have been trying to get facebook page feed from json data with jquery.
I am trying to get the following to work. I have this code in
I have a form which is submitted to a PHP page. The data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.