FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[HELP] script PHP





rafazamboni
Hi friends...

I have a problem ->>>




I have a page with the code:

Quote:
<form action="boletim.php" method="post" ENCTYPE="multipart/form-data">

<div align="center">

<input type="text" size=30 name="sere"></td>

<input type="submit" value="Enviar" name="submit">

</form>



I have another necessary page in php and that the equal value of $numero either to the value (sere) typed in the field of the form of the previous page.

----------------------------------------------------------------------------------
For example:

if I to type value 123 in the field sere and to send, necessary that the value of $numero either 123 also.
----------------------------------------------------------------------------------

THANKS TO ALL
dandelion
Just use the $_POST['sere'] variable for this purpose as shown below.
Code:
<?
  $numero = $_POST['sere'];
?>
BlackSkad
Oh, so the only thing you want, is that the variable $numero gets the same value as the field 'sere'? It's quite easy:
Code:

//every value entered in a form, is contained in the $_POST array.
//getting the value of sere goes like this:
$numero = $_POST['sere'];


I hope it was this you meant, because your post wasn't all clear to me...

Greatz,
BlackSkad

EDIT: I just noticed that I have to type a little faster...
Stubru Freak
rafazamboni wrote:
Code:
<form action="boletim.php" method="post" ENCTYPE="multipart/form-data">

<div align="center">

<input type="text" size=30 name="sere"></td>

<input type="submit" value="Enviar" name="submit">

</form>


Now for your code... You are opening a div and ending a td. I suppose you should change one of them to the other one.
And I would write enctype in lower case to be more XHTML compliant. I should use XHTML anyway, to make your page more usefull for future use.
rafazamboni
Thanks dandelion e BlackSkad.

It gave certain. Thank for the help.

And Stubru Freak, tahnk for your comment.



Wink Wink Wink
Related topics
[tutor] How to protect images without htaccess using PHP
If you need help with php-nuke
need help on php-nuke
Need help with php script
je veux integrer un script php dans mon themes.
CAN ANYONE SCRIPT PHP
Need help with PHP script[RESOLVED]
Need Expert help in php-mysql
Help with php and java script
Need help on PHP programming....
Help with php email
Need Help in PHP Coding
[help] [tecg] script php para publicar en twitter
Any one can help 4 PHP object coding self learning site?
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.