javascript in php

This is a discussion on javascript in php within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have this bit of php in a much larger php file that requests information from users don't supply ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 3 Weeks Ago
Seen
 
Posts: n/a
Default javascript in php


I have this bit of php in a much larger php file that requests
information from users don't supply enough info, I want to open
another html file for display. I get an error that sends me far down
into the php file to the start of some html code. Am I doing something
not allowed??
Thanks Axel

<?php
......
function getmore() {
// Main Logic
$notsub = true;

// ck subject is correct
if($notsub) {
?>
<script type="text/javascript">

open("../moer.html","Moreinfo",toolbar=0,resizable=0,locati on=0,menubar=0,status=0,directories=0,scrollbars=0 )
</script>
<!php
}
}
?>
Reply With Quote
  #2 (permalink)  
Old 3 Weeks Ago
Olaf Schinkel
 
Posts: n/a
Default Re: javascript in php

Seen schrieb:
> I have this bit of php in a much larger php file that requests
> information from users don't supply enough info, I want to open
> another html file for display. I get an error that sends me far down
> into the php file to the start of some html code. Am I doing something
> not allowed??
> Thanks Axel
>
> <?php
> .....
> function getmore() {
> // Main Logic
> $notsub = true;
>
> // ck subject is correct
> if($notsub) {
> ?>
> <script type="text/javascript">
>
> open("../moer.html","Moreinfo",toolbar=0,resizable=0,locati on=0,menubar=0,status=0,directories=0,scrollbars=0 )
> </script>
> <!php
> }
> }
> ?>

Your Problem is **not** Php.
Ypur Problem is "How do i become a programmer".
Read PHP an JAVASCRIPT an HRML and and and.... (The HowTos)


Reply With Quote
  #3 (permalink)  
Old 3 Weeks Ago
Seen
 
Posts: n/a
Default Re: javascript in php

On Thu, 17 Apr 2008 19:01:21 +0200, Olaf Schinkel
<blablabla@bluxxxxxxxx.de> wrote:

>Seen schrieb:
>> I have this bit of php in a much larger php file that requests
>> information from users don't supply enough info, I want to open
>> another html file for display. I get an error that sends me far down
>> into the php file to the start of some html code. Am I doing something
>> not allowed??
>> Thanks Axel
>>
>> <?php
>> .....
>> function getmore() {
>> // Main Logic
>> $notsub = true;
>>
>> // ck subject is correct
>> if($notsub) {
>> ?>
>> <script type="text/javascript">
>>
>> open("../moer.html","Moreinfo",toolbar=0,resizable=0,locati on=0,menubar=0,status=0,directories=0,scrollbars=0 )
>> </script>
>> <!php
>> }
>> }
>> ?>

>Your Problem is **not** Php.
>Ypur Problem is "How do i become a programmer".
>Read PHP an JAVASCRIPT an HRML and and and.... (The HowTos)
>

Not very helpful. You should use "and" not "an".
Reply With Quote
  #4 (permalink)  
Old 3 Weeks Ago
Janwillem Borleffs
 
Posts: n/a
Default Re: javascript in php

Seen schreef:
> open("../moer.html","Moreinfo",toolbar=0,resizable=0,locati on=0,menubar=0,status=0,directories=0,scrollbars=0 )
> </script>
> <!php
> }
> }
> ?>


First thing I notice is the invalid opening tag (<!php instead of
<?php). Is this teh problem or just a typo in your post?


JW
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0