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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 } } ?> |
|
|||
|
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) |
|
|||
|
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". |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|