how to insert code into my website

Discussion in 'Programming' started by kumponet, Apr 22, 2008.

  1. #1
    I have some code that I would like to put on my website (to verify email addresses) and I'm not sure how to do it.

    If I simply paste the code into my website the code just appears on the page as text.

    How do I make the code "active"?
     
    kumponet, Apr 22, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    What kind of code? PHP? If so, it has to be placed in a file with a .PHP extension, with PHP brackets <?php ... ?> around it.
     
    itcn, Apr 22, 2008 IP
  3. kumponet

    kumponet Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes it is php code I was wondering about. If I place the php code in a file, how do I call upon the php code to be active in the website? Is there some kind of tag I have to include in the html code?

    Is java script used the same way?
     
    kumponet, Apr 22, 2008 IP
  4. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to save the file as .php and you have to put the PHP code inside <?php and ?> tags.
     
    Dondon2d, Apr 22, 2008 IP
  5. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #5
    LOL, didn't I just tell him that?
     
    itcn, Apr 23, 2008 IP