Simple question

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: ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2003
Labunski
 
Posts: n/a
Default Simple question

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.
Reply With Quote
  #2 (permalink)  
Old 12-29-2003
Binay
 
Posts: n/a
Default Re: [PHP] need a little help all



----- 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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0