Results 1 to 6 of 6

Thread: value PHP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63

    value PHP

    HTML Code:
    <form method="POST" action="#">
    <input type="text" name="username" value="pesho">
    <input type="submit" name="submit" value="Submit">
    </form>
    <?php if(isset($_POST['submit']))var_dump($_POST['username']);
    ?>

    value - pesho

    :

    HTML Code:
    <form method="POST" action="#">
    <input type="text" name="username" value="<?php 'pesho'; ?>">
    <input type="submit" name="submit" value="Submit">
    </form>
    <?php if(isset($_POST['submit']))var_dump($_POST['username']);
    ?>

    - value
    pesho , php ?

  2. #2
    mKrotiFy's Avatar
    Join Date: Oct:2010
    Location: , 💪
    Posts: 1,062
    <?php print 'pesho'; ?>

  3. #3
    programings's Avatar
    Join Date: Jul:2011
    Location:
    Posts: 830
    , .
    PHP , , .

    - echo, print PHP , , echo - .

    PHP Code:
    <?php echo 'pesho'?>

  4. #4
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    -

  5. #5
    Registered User
    Join Date: Dec:2003
    Posts: 2,817
    .
    Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb

  6. #6
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    <?=$pesho?>
    , ( ternary ). php 5.4 .
    $pesho , - , php?!
    echo/print, echo , language construct...
    print. , . - , - expression . , - .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |