Jump to content

LiamProductions

Members
  • Posts

    496
  • Joined

  • Last visited

    Never

Posts posted by LiamProductions

  1. Hey

     

    How do i use to functions at the same time?

     

    I tryed heres the code:

     

    <?php

     

    $reverseword = isset($_POST['reverseword'])?$_POST['reverseword']:0;

     

    echo strrev, strtolower($reverseword);

     

    ?>

     

     

    Thanks, please tell me how you use to functions at the same time for future reference.

  2. Hey.

     

    I have a problem. Im making a word reverser. And i get this error on the reversedword.php file:

     

     

    Parse error: syntax error, unexpected ';' in /home/liam/public_html/reversedword.php on line 12

     

     

    Reversedword.php:

    <html>
    <head>
    <title>Word Reverser !!! </title>
    </head>
    <body bgcolor="black">
    <font color="white">
    <center>
    <?php
    
    $reverseword = isset($_POST['reverseword'])?$_POST['reverseword']:0;
    
    echo (strrev("$reverseword");
    
    
    ?>
    
    
    </center>
    </font>
    </body>
    </html>

     

    Thanks

  3. Thanks JP, I just installed Wamp Server about a hour ago. Its ok.

     

    Its loops that i mainly don't understand but i guess i will if i keep looking at loop tutorials... jEdit helps seen as i have changed the colors to suit me... I like the black background i set because i feel like a coder then :P

  4. Hey, i don't want you to re write the whole program, but just fix the error or tell me what the error is:

     

    I am making a Addition Form. The problem is use it, on the addition.php the answer always comes out as 0... the answer should be coming from maths.php here are the codes:

     

    Maths.php

    <html>
    <head>
    <title>Maths Addition</title>
    </head>
    <body bgcolor="black">
    <font color="white">
    <center><h1>Addition Form</h1>
    <form method="post" action="addition.php">
    <input type="text" name="x" value="0"> <font color="red"><b>+</b></font> <input type="text" name="y" value="0">
    <br /><br />
    <input type="submit" value="Do the addition!">
    </form>
    <br /><br /><br /><br /><br /><table border="1">
    <tr>
    <td><font color="white">Made by <font color="blue">Liam Monks</font></font></td>
    </tr>
    </table>
    </font>
    </body>
    </html>

     

    AND

     

    Addition.php

    <html>
    <head>
    <title>Maths Addition</title>
    </head>
    <body bgcolor="black">
    <font color="white">
    <center><h1>Addition Form</h1>
    <?php
    
    echo "The answer to your addition is...";
    echo ($x + $y);
    
    ?>
    <br /><br /><br /><br /><br /><table border="1">
    <tr>
    <td><font color="white">Made by <font color="blue">Liam Monks</font></font></td>
    </tr>
    </table>
    </font>
    </body>
    </html>

     

    Thanks, i can't  find the error

     

  5. I think the site could go far. but when you upload your image url should come up at the end instead of going into email... and maybe one day you could make a login area so users can find there images quick

  6. I only started like last week. ~I started because i want to make Forums, Login scripts, Poll's ect and work for sites in the future as a hobby, because i thought to my self all i do every day is go school, come home and go on msn so i thought it was pointless and thought i have to do something... then i thought do what i always wanted to do but never be bothered PHP

     

    I've learnt few things from http://www.PHPVideoTutorials.com and a ebook i have PHP and MYSQL for the absolute beginners i can give you the ebook if you have MSN

     

    Thats basically it.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.