Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Issue with print command
Old 11-04-2005, 11:09 PM Issue with print command
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
So this login page is still under construction, but for some reason anytime I use the print command through php it will stop interpreting as php at the first encounter of a '>' and ignore anything that falls before that.

PHP Code:
<?php include_once ("authpaths.php"); ?>
<html>
<head>
<title>Charlotte's Web Visual FX - Plese Login</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000">
<?php
  
print "<br>";
?>
<br>
    <table width="80%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr> 
        <td width=25% height="23">&nbsp;</td>
        <td width=75%><center><font size="6" color="#FFFFFF">Charolottes's Web Visual FX</font></center></td>
      </tr>
      <tr> 
        <td height=90% valign="top">
                    <br><br>
                    <form name="Login_Form" style="post" action="Login.php">
                        <table align="center" width="90%" border="0" cellpadding="3" cellspacing="0">
                            <tr> 
                                <td valign="middle">
                                    <b><font color="FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">&nbsp;Username</font></b>
                                </td>
                            </tr>
                            <tr>
                                <td valign="middle"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                                    &nbsp;
                                    <input type="text" name="username" size="25" maxlength="25">
                                    </font></b>
                                </td>
                            </tr>
                            <tr> 
                                <td valign="middle">
                                    <b><font color="FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">&nbsp;Password</font></b>
                                </td>
                            </tr>
                            <tr>
                                <td valign="middle"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                                    &nbsp;
                                    <input type="password" name="password" size="25" maxlength="25">
                                    </font></b>
                                </td>
                            </tr>
                            <tr valign="middle"> 
                                <td> 
                                    <div align="center">
                                        <input type="submit" name="Login" value="Login">
                                        <input type="reset" name="Clear" value="Clear">
                                    </div>
                                </td>
                        </tr>
                    </table>
                </form>

                        
                </td>
        
      <td align="center" valign="middle">
                <a href="http://www.charlotteswebmovie.com"><img border="0" src="http://www.cwvfx.com/Revisions/Images/charweb_poster.jpg" width=75%></a> 
      </td>
      </tr>
    </table>
        </font>
</body>
</html>
In this example the second php block that should put a break will print "; ?> to the screen. Hope somebody know what is going on here.

Last edited by Nahele; 11-04-2005 at 11:14 PM..
Nahele is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-05-2005, 12:25 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Try using echo instead of print, or put the string in brackets : print("<br>");
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 11-05-2005, 05:33 PM
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
I've actually tried both of those ideas, same issue
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-06-2005, 10:03 AM
Average Talker

Posts: 20
Location: Benevento
Trades: 0
Quote:
Originally Posted by Nahele
I've actually tried both of those ideas, same issue
You've this problem because your php script is not interpreted server side and you get the whole script in output.

View the source of the html output(from the browser) and see if you get also the php code.



Cheers
__________________

Please login or register to view this content. Registration is FREE
j2be is offline
Reply With Quote
View Public Profile Visit j2be's homepage!
 
Reply     « Reply to Issue with print command
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56065 seconds with 12 queries