FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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
je veux integrer un script php dans mon themes.
CAN ANYONE SCRIPT PHP
Need help on PHP programming....
Need help with php script
Need help with PHP script[RESOLVED]
Help with php and java script
Need Expert help in php-mysql
Help with php email
Need Help in PHP Coding
[tutor] How to protect images without htaccess using PHP
If you need help with php-nuke
need help on php-nuke
Help In Php-nuke
help with php
Need Help in PHP
PHP Script- How can we install it
HELP on PHP MYSQL : everything MESSED UP
Need help with php
Need help with PHP
Need Help integrating php variable into mySQL SELECT query
Image Manipulation with PHP Script
need help on PHP or HTML...
Help with php and coding
problems withs script
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-2007 Frihost, forums powered by phpBB.