Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47
  1. #21
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Nice little addon

    test.html:
    <form action="title.php" method="post">
    Enter your name: <input type="content" cols="1" rows="10"
    <input type="submit" value="Submit" name="Submit"
    </form>

    Title.php

    <?
    $title = $_POST[content];
    ?>
    <title><? echo $title; ?></title>
    Last edited by Dentafrice1; 06-09-2006 at 06:52 PM.

  2. #22
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Lol :p

  3. #23
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    I know?; Dentafrice.
    :S

    unlink(DHs/dentrafrice);

    if only, eh?
    Last edited by Halting; 06-09-2006 at 06:54 PM.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  4. #24
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Dentafrice theres no need to echo it out in the Title simply use this;

    <?
    $title = $_POST[content];
    ?>
    <title><? $title ?></title>

    Just for something extra you could use

    <?
    $title = $_POST[content];
    ?>
    <title><? $title ?></title>
    <?
    Then my script here
    ?>

    Just for the hell of it.

  5. #25
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Im pretty sure you have to echo it..

  6. #26
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    I don't think you do, but hey i sometimes make mistakes :p

  7. #27
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Lol, yeh, you could use that (your first post), would be interesting.

    You could make a cool quiz thing using this, you give them a question/riddle, they have to figure it out, if its right it takes them to the next question, if its wrong they have to try again! ^^

  8. #28
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    What does that mean mynameisoli? WTH

  9. #29
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    <?
    $title = $_POST[content];
    ?>
    <title><? $title ?></title>
    <?
    Then my script here
    ?>

    That won't work. The simplest way to echo something through PHP markup in my knowledge is <?=$var;?>. For instance, <?=$title;?>. It saves you having to put a backward-slash before each and every speech mark. If you prefer to echo, you can always start your echos like so:

    echo'<html></html>';

    If you do it this way, you will not have to put a backward-slash before your speech marks. Instead, you will need to put a backward-slash before your apostrophes. For instance:

    echo'<font class="header">Success!</font><br />We have successully truncated the table named $name. Don\'t forget to...';

    EDIT: the function unlink is a function set in the PHP manual. It can be used to delete files from your server. For instance.

    unlink(bg.jpg);

    Hope this helps
    Last edited by Halting; 06-09-2006 at 07:05 PM.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  10. #30
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    I know.. why did you want to unlink me? *** :p

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

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