This is a discussion on Simple question within the PHP General forums, part of the PHP Programming Forums category; Hello, I have only one simple question.. I'm using this method to get the values from the text box: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello, I have only one simple question..
I'm using this method to get the values from the text box: if(isset($_POST["Submit"]) && $_POST["Submit"]=="Submit") { $add = $_POST['textbox'] ; } But I don't know how to write the source for this: If the value from the textbox ($add) is "Hello" then.. do something. I think it could be nicely done with IF, but I dont know how to write this.. Can someone help me, please? Regards, Lab. |
|
|||
|
----- Original Message ----- From: "Richard Davey" <rich@launchcode.co.uk> To: <php-general@lists.php.net> Sent: Monday, December 29, 2003 4:52 AM Subject: Re: [php] need a little help all > Hello, > > Wednesday, December 17, 2003, 11:50:52 AM, you wrote: > > wmc> Here is what i have i call 2 cookies in the top of my script, now i need to > wmc> call another when another script is called but it keeps givin me the error > wmc> headers already sent, > wmc> now ive seen this done in other scripts but wont work for me so please help > wmc> me is it in my php.ini or is it just not possible and imagened seeing it > wmc> somwhere else. Thanks all. > > You can access the value of cookies anywhere in your script, > regardless if the headers have been sent or not. However you cannot > SET a cookie once the headers have gone for use in the same page > session. This isn't a PHP setting, it's just not possible. --------------------- Output buffering might be hlepful. read the php documentation abt output buffering. --------------------- > > -- > Best regards, > Richard mailto:rich@launchcode.co.uk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php |
![]() |
| Thread Tools | |
| Display Modes | |
|
|