You are here: Re: simple formm & $_POST « PHP Programming Language « IT news, forums, messages
Re: simple formm & $_POST

Posted by Rami Elomaa on 05/29/07 16:06

vinnie kirjoitti:
> I have this form:
>
> <form action="http://www.XXXXXXX.com/form.php" method="post"
> name="form1" target="_blank" id="form1">
> <label>Nome &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> <input name="<b>name</b>" type="text" maxlength="45" />

Remove the <b></b> from input name.

> </label>
> <p>
> <label>Last
> <input name="last name" type="text" dir="ltr" maxlength="45" />
> </label>
> </p>
>
> now, i have made this php script just to echo the value in "name" and
> "last" but it doesn't work:
>
> <?php
> print("$_POST['name']");
> print("thanks, see you soon");
> ?>
>
> what's the error?
>

You can test what was posted with
print_r($_POST);

It's often very helpful in debugging the input data.

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация