A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP Print Function.. Simple fix hopefully..

  1. #1
    Mike Haverstock
    Join Date
    Dec 2001
    Posts
    167
    I am starting to play around with php... ( I am 13 for the record) Now, My host adds script to my php.. After my last print statement, it puts <! This was Generated BLAH BLAH Please delete!> And for some reason my print statement picks that up also. So instead of haveing just my varible it has the varible and the automated script in it.. Is there a way to totally end the print statment.. Like a print end;
    or something that i haven't stumbled across... Or am i just setting the print statement up wrong..

    <? Print "&Var1=2"; ?> Is that not the proper way to set up a print statement? Please post back..

    Mike Haverstock
    [Edited by mike6888 on 02-28-2002 at 05:44 PM]

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    119
    hiThere!
    That sucks!

    try adding this after your print and befor the **** extra code from your host:



    exit;

    This tells the php to stop executing.

    Hope that helps!

  3. #3
    Junior Member
    Join Date
    Sep 2000
    Posts
    14
    <? Print "&Var1=2"; ?> is wrong.
    try this:
    <? print("&Var1=2"); ?>
    or this:
    <? echo '&Var1=2'; ?>

    Charlie...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center