document.write("<?php ..

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Wed Apr 09, 2003 9:58 am

correct me if im wrong but since javascript is client side and php is server side.... it wont since the page has been already parsed server side... but you could probably write javascript with php.

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Thu Apr 10, 2003 4:34 am

Javascript scripts run at client commonly unless specified to run at server, hence after executing the script a new code can't be written and if written that page needs to be executed by the server, the page which is on client where the new script is written can't be executed by the server

liquedus
php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Sun Apr 20, 2003 5:55 am

putting the php code into an variable doesnt make a difference, javascript is processed client side AFTER php is processed server side which is sent to client as HTML

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests