Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Thanked 0 Times in 0 Posts

    greater than sign messing up the code

    First off, I know nothing about PHP other than the fact that it starts with a <?php and ends with a ?>. We all have to start from somewhere, right?

    I inserted some PHP code called Upload2Server at the top of my page that's going to be an application form. The user fills it in and what I'm trying to do is simply email all the fields to the client.

    The code looks really nice , but this statement:

    if($size > 0)

    Makes my browser think it's the end of a tag and from that point on, all the PHP code is displayed at the top of my page.

    Is there a suitable substitute for "if($size > 0)"?

  2. #2
    New Coder
    Join Date
    Mar 2004
    Thanked 0 Times in 0 Posts
    No, that in itself would not do that.
    For one, it isn't a ?>, just a >.
    Have you got other scripts working properly on your server?
    Try just putting this:
    PHP Code:
    And see if it gives you the setup of your server's php.

  3. #3
    Master Coder
    Join Date
    Jul 2002
    Thanked 0 Times in 0 Posts
    Welcome here!

    Maybe post some more code so we can give some helpfull feedback.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


Posting Permissions

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