What's going on? (PHP Issues)?

  • Thread starter Thread starter Tom Carivichi
  • Start date Start date
T

Tom Carivichi

Guest
<?php
$my_name = "someguy";

if ( $my_name == "someguy" ) {
echo "Your name is someguy!>br /<";
}
echo "Welcome to my homepage!";
?>

For some reason when ever I type a code like this into wordpad and execute in Firefox, it comes out like this

"; } echo "Welcome to my homepage!"; ?>

and if I remove this: >br /<

It comes up as a blank page.
Why is this happening? This is from a php tutorial site

Note: >br /<'s have flipped ><'s to keep them visible
 
Hello Tom;

I truly want to understand what might possibly go that wrong. But I got a few things if it makes sense to you

1st thing 1st, any possible execution takes place at the httpd server, not on your browser :) okay I'm continuing

whatever gives rise to this (we're not sure if there was an error) must be at that "blank-row" mark up. It must be the focal point. Put stuff before it and see yourself if it prints that stuff as well.

Check for these " " quotation marks as well as the less-than and greater-than keys.

For some reason this much information wasn't enough for me.. in case you need help don't hesitate to contact me. I might help.

regards
 
Back
Top