Professional Web Applications Themes

$_POST problem - PHP Development

Anyone see what when I submit this, I can't do a $_POST on it? I check with the DB first to see if there is a value and if so, I fill it, otherwise, it will return a blank for the user to fill if they want. <input type="text" name="keywords" value="<?php echo("$new_keywords"); ?>" size="53" maxlength="500"> On the page that it goes to when it is submitted, the post looks like this: $img_keywords = trim($_POST["keywords"]); thanks...

  1. #1

    Default $_POST problem

    Anyone see what when I submit this, I can't do a $_POST on it? I check with
    the DB first to see if there is a value and if so, I fill it, otherwise, it
    will return a blank for the user to fill if they want.

    <input type="text" name="keywords" value="<?php echo("$new_keywords"); ?>"
    size="53" maxlength="500">

    On the page that it goes to when it is submitted, the post looks like this:

    $img_keywords = trim($_POST["keywords"]);


    thanks


    Micah Montoy Guest

  2. #2

    Default Re: [PHP] $_POST problem

    I want to know what is the difference between {} and the one without {}.:)
    I use {} to resolve many problems, but I do now know what is the
    difference:).

    thank you!
    "Aaron Axelsen" <axelseaaamadmax.com>
    ??????:003701c34693$7fe05150$6400a8c0DELTA...
    >
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Try:
    >
    > $img_keywords = trim({$_POST["keywords"]});
    >
    > - ---
    > Aaron Axelsen
    > AIM: AAAK2
    > Email: [email]axelseaaamadmax.com[/email]
    >
    > Want reliable web hosting at affordable prices?
    > [url]www.modevia.com[/url]
    >
    > Web Dev/Design Community/Zine
    > [url]www.developercube.com[/url]
    >
    >
    >
    > - -----Original Message-----
    > From: Micah Montoy [mailto:montmicaisu.edu]
    > Sent: Wednesday, July 09, 2003 10:26 PM
    > To: [email]php-generallists.php.net[/email]
    > Subject: [PHP] $_POST problem
    >
    >
    > Anyone see what when I submit this, I can't do a $_POST on it? I
    > check with the DB first to see if there is a value and if so, I fill
    > it, otherwise, it will return a blank for the user to fill if they
    > want.
    >
    > <input type="text" name="keywords" value="<?php
    > echo("$new_keywords"); ?>" size="53" maxlength="500">
    >
    > On the page that it goes to when it is submitted, the post looks like
    > this:
    >
    > $img_keywords = trim($_POST["keywords"]);
    >
    >
    > thanks
    >
    >
    >
    > - --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    >
    > -----BEGIN PGP SIGNATURE-----
    > Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
    >
    > iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93l pINdcAoM9h
    > tVqNcesMuM/L3fZaXmIdKdId
    > =fJlG
    > -----END PGP SIGNATURE-----
    >
    >

    Myhan Guest

Similar Threads

  1. why is . converted to _ in $_POST
    By jcg in forum PHP Development
    Replies: 2
    Last Post: May 27th, 10:45 PM
  2. Variable _POST
    By Nico in forum PHP Development
    Replies: 2
    Last Post: November 3rd, 11:13 PM
  3. if(is_array($_POST)) always = TRUE - why?
    By Randell D. in forum PHP Development
    Replies: 4
    Last Post: October 31st, 01:16 PM
  4. Problem with post and echo $_POST['var']
    By ozeh in forum PHP Development
    Replies: 2
    Last Post: October 27th, 03:37 PM
  5. [PHP] $_POST problem
    By Micah Montoy in forum PHP Development
    Replies: 7
    Last Post: July 10th, 04:45 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139