On Tue, January 31, 2006 5:03 am, All U Want wrote:
> I'm sure it is a very simple question for you but I'm getting almost
> crazy.
>
> I've got a simple form with several form objects, one of them is a
> text field. After submitting the form if one of the form objects
> hasn't been modified I will
Can you check the source code?
are there values in source, but it is not displayed on the browser?
check this code snippet
Thanks
Richard
On 1/31/06, All U Want <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I'm sure it is a very simple question for you but I'm getting almost
> crazy.
>
> I'v
I'm not sure I understand the problem.
Can you send a link to the page and post some code?
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
PHP code examples : http://www.weberdev.com
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for y
A hidden INPUT would be better...
...
"Bala Chandar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
hi
On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how a submit button can be used to send set a variable
> so
> there is only a button --no textfield.
use valu
hi
On 5/5/05, Anasta <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how a submit button can be used to send set a variable so
> there is only a button --no textfield.
use value="" in the button html component
--
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http:
On Thursday 05 May 2005 17:46, Anasta wrote:
> Can anyone tell me how a submit button can be used to send set a variable
> so there is only a button --no textfield.
Use hidden input fields.
--
Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)
PGP ID: 7AE45436
PGP Public Key: http://bu.or
I figured out my problem but I am not sure why this is.
I am trying to implement a back button to allow the user to go back and
change form values.
If I use sessions and register $test then this does not work, the value of
$test does not change if the user re-submits:
Thanks for any he
OK thanks. I figured out my problem but I am not sure why this is.
I am trying to impliment a back button to allow the user to go back and
change form values.
If I uses sessions and register $test then this does not work, it sticks
does not change the value of $test if the user re-submits:
Tha
On Sunday 25 January 2004 04:02, Paul wrote:
> If I register a session variable, set its value with one form and then try
> to change its value with another form, it seems to retain only the original
> value and is not replaced with the newly posted one?
>
> Is this how it is supposed to work and
-Oorspronkelijk bericht-
Van: Nitin [mailto:[EMAIL PROTECTED]
Verzonden: zaterdag 20 december 2003 7:30
Aan: PHP-General
Onderwerp: [PHP] form variables
> i've an application, where i'm receiving variables from an html form and
process them in the script. depending on the values, i may
thanx for a quick reply and i'm sorry for it was so dumb qu
nitin
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Nitin" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[EMAIL PROTECTED]>
Sent: Saturday, December 20, 2003
On Sat, 2003-12-20 at 01:29, Nitin wrote:
> hi all,
>
> i've an application, where i'm receiving variables from an html form and process
> them in the script. depending on the values, i may want to get some extra
> information from user through another form. now, problem is how can i keep the
>
The approach of using $_GET variables would just make the URL very very
long, like imagine having to pass close to 33 variables on the form.
The other option wud be to use $_SESSION array to store the form
variables.
Does anyone have nay other suggestion.? Thanks in advance !
/pS
On Tuesday
I am currently using sessions on my site // are you suggesting that I
store all the possible 30 form variables in a temp session array. ??
and destroy it afterwards
Thanks
-Pushpinder
On Tuesday, September 2, 2003, at 04:41 PM, Matt Matijevich wrote:
[snip]
then the forms
variables are stored a
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
> I am making use of a php form to add company details to a MySQL
> Database. Before I add the form variables I am checking to see if the
> SAME company name exists in the DB. If the same company exists, then a
> notification is provided. In bet
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
> I am making use of a php form to add company details to a MySQL
> Database. Before I add the form variables I am checking to see if the
> SAME company name exists in the DB. If the same company exists, then a
> notification is provided. In
[snip]
then the forms
variables are stored and NOT LOST ??
[/snip]
Have you looked into sessions?
http://www.php.net/manual/en/ref.session.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> You never answered if this was in a function or class
> method. Is it? Did you say whether it was Apache 1 or 2?
Also, to check what the register_globals setting really
is, make a call to phpinfo() as it will tell you the
true setting. Sometimes the wrong php.ini is edited
or the web server
[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 12:35 AM
> To: Ernest E Vogelsinger
> Cc: Philip Olson; [EMAIL PROTECTED]
> Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql,
Win
> 2k Setup
>
> H.
>
> Sounds like "resorting"
Cc: "Philip Olson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:58 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> At 02:55 30.01.2003, Noah said:
> [snip]
>
r" <[EMAIL PROTECTED]>
To: "Noah" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:55 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> At 02:48 30.01.2003, Noah said:
> [s
Jim
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:59 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> On Thursday 30 January 2003 09:55, Noah wrote:
>
At 02:55 30.01.2003, Noah said:
[snip]
>I don't want to use $_REQUEST['my_passed_variable'] at all.
>
>Right now when I do an sql insert on my local machine I have to use the
>following syntax:
>
>INSERT into tablename (field name list)
>VALUES ($_REQUEST['va
d more info,
--Noah
----- Original Message -
From: Leif K-Brooks
To: Noah
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 2:19 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup
Mind giving a code snippet?
Noah wrote:
Thanks for t
On Thursday 30 January 2003 09:55, Noah wrote:
> I don't want to use $_REQUEST['my_passed_variable'] at all.
>
> Right now when I do an sql insert on my local machine I have to use the
> following syntax:
>
> INSERT into tablename (field name list)
> VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $
<[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 5:55 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> I don't want to use $_REQUEST['my_passed_variable'] at all.
>
> Right now when I do an sql insert on my local machine I hav
At 02:48 30.01.2003, Noah said:
[snip]
>Yup. Restarted Apache.
>
>PHP's still not evaluating the passed form vars whether register globals is
>set to On or Off
[snip]
Just thinking the unthinkable...
Most of
27;])
I just want to use $var1, $var2, $var3
--Noah
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "CF High" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:23 PM
Subject: Re: [PHP] Form Variables no
PROTECTED]>
Sent: Wednesday, January 29, 2003 2:23 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> At 01:36 30.01.2003, CF High said:
> [snip]
> >However, setting register_globals on or off make
At 01:36 30.01.2003, CF High said:
[snip]
>However, setting register_globals on or off makes no difference. The
>variables are still not getting evaluated
[snip]
I _BET_ it's register_globals.
Did you restart
One too many $'s in your code, use:
$_REQUEST['my_passed_variable']
This is how all arrays work, autoglobals are the same.
See also:
http://www.php.net/variables.external
http://www.php.net/variables.predefined
Regards,
Philip
On Wed, 29 Jan 2003, CF High wrote:
> Hey all.
>
> T
: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "CF High" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 1:38 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
RTFM! Your problem is register_globals
RTFM! Your problem is register_globals.
CF High wrote:
Hey all.
This driving me nuts:
I've got Apache, MySql, and Windows 2000 running on my local machine.
In order to get passed php variables evaluated, whether via a url query
string, or through a form post, I have to use this syntax:
$_
On Sunday 17 November 2002 00:36, Chris Jackson wrote:
> I am havein troubles gettin my form variables to work.
> The "register_globals" in php.ini is set to its default of "off".
[snip]
> the dosent print anything in the action of the
> form and the
Because register globals is disabled you ha
At 17:36 16.11.2002, Chris Jackson said:
[snip]
>I am havein troubles gettin my form variables to work.
>The "register_globals" in php.ini is set to its default of "off".
>
>the dosent print anything in the action of the form
That's because register_global
Because it isn't? Instead of echoing $PHP_SELF, echo
$_SERVER['PHP_SELF']. With the $_POST problem, it's complaining that
you're using a variable that isn't defined. Use?
if(array_key_exists('formfieldnamegoeshere',$_POST)){
print $_POST['formfieldnamegoeshere'];
}
?>
Chris Jackson wrote:
I
Follow your instincts and do some research into sessions.
I've put enormous amounts of data into sessions before on high-traffic
sites without much trouble. You need to have the memory for it, of
course, but it takes a lot of form data to equate to any significant
amount. Chances are you'll be
The text field only has newlines (\n) not breaks.
For starters, in the text area tag, you need wrap="virtual":
Then instead of
print "$mailingAddress";
try
print nl2br($mailingAddress)."";
... which converts all new lines (\n) into breaks ()
Regards,
Justin
on 10/09/02 2:21 PM,
thank you very much :-)
"Chris Shiflett" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am guessing you mean the input is a textarea.
>
> At any rate, I believe what you want is nl2br()
>
> Happy hacking.
>
> Chris
>
> Hans Prins wrote:
>
> >Hello,
> >
> >
I am guessing you mean the input is a textarea.
At any rate, I believe what you want is nl2br()
Happy hacking.
Chris
Hans Prins wrote:
>Hello,
>
>I have a form field of the type "scrolling text box" it lets users input a
>multiline string. I then pass this string as a variable to a php docume
You are correct. My web server is Running 4.2.1 and all of the sites are
still working.. That is why I assumed that it was a problem locally, but
after looking at the web server the globals is turned on. Thanks.. I can go
forward now. I appreciate your help
On 6/7/02 9:33 PM, "Philip Olson" <[EM
Actually, they are. You are assuming the PHP directive
register_globals = on when using $phrase from the form
below. register_globals = on is what creates $phrase.
As of PHP 4.2.0 the default value for register_globals
has become off. Regardless, there are other options:
Try either:
//
I just read the release notes and do not believe they are referring to my
dilemma.
Here is the code I am using. Just a basic form
<>
Phrase:
<>
On 6/7/02 9:08 PM, "Stuart Dallas" <[EMAIL PROTECTED]> wrote:
> On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
>
>> I rece
On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
> I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
> Apache 1.3.2. I have verified that php is running and apache is running.
> When I access a page locally http://127.0.0.1/simple_form.php, fill in the
> only text box an
On Tuesday 05 March 2002 10:52, Craig Westerman wrote:
> OK, changing from post to get gets me what I'm after. Thanks guys.
> Something odd though.
>
> If I type in RHAT and hit enter, I get this URL which is what I want.
> quotestest.php?quote=RHAT
>
> If I type in RHAT and click submit button, I
remove the "name" from the submit
so it's just:
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 1:52 PM
To: php-general-list; Tom Rogers
Subject: RE: [PHP] form variables
OK, changing from post to get gets me what I&
8:07 PM
To: Craig Westerman; php-general-list
Subject: Re: [PHP] form variables
hi
Use
This will work as long as the form is not too big
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change "post" to "get"
-Original Message-
From: Dan Vande More [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:48 PM
To: php-general-list
Subject: RE: [PHP] form variables
Do you mean to have the extra '=' in there?
Should it be:
inste
hi
Use
This will work as long as the form is not too big
Tom
At 11:14 AM 5/03/2002, Craig Westerman wrote:
>
>
>
>
>
>
>
>
>The above form passes $quote to the page quotestest.php
>How can I also pass the $quote to the URL so that the page with variable can
>be bookmarked?
>
>Do I have to
Do you mean to have the extra '=' in there?
Should it be:
instead of
?
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 6:27 PM
To: php-general-list; Greg Donald
Subject: RE: [PHP] form variables
Thanks Donald,
I tried that
Thanks Donald,
I tried that before and this is URL returnedquotestest.php?quote=
Craig ><>
[EMAIL PROTECTED]
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 7:17 PM
To: Craig Westerman
Cc: php-general-list
Subject: Re: [
On Mon, 4 Mar 2002, Craig Westerman wrote:
>
>
>
>
>
>
>
>
>The above form passes $quote to the page quotestest.php
>How can I also pass the $quote to the URL so that the page with variable can
>be bookmarked?
>
>Do I have to modify both pages or just the input form?
--
-
Michael George wrote:
> I read this after I'd created a script which generates a form with a
> 2D array on it. But as I test it, it seems to work.
>
> In short, it the 1D array a limitation of
> HTML or PHP?
I think it is a limitation of PHP 3. It should work with PHP 4. HTML is
not responsible
Hey...Bruno from Brazil :)
Try this
while ( list ( $key,$value ) = each($HTTP_POST_VARS) ) {
echo "$key: $value";
}
This will list every variable that was past to the browser.
Enjoy!
__John Monfort_
_+---+_
P E P I
> My problem is:
> I wanna know the names of the variables that my actual page
> recives from the last page (using the POST method).
while( list( $formVarName, $formVarValue = each( $HTTP_POST_VARS )) {
echo "$formVarName = $formVarValue\n";
}
Chris
Show us all the code you chopped out, or at least every single line that
mentions $pass_category.
Or, faster for you to figure it out:
Echo out $pass_category immediately before the if () statement.
I'm betting you set it accidentally in the other code.
> if ($pass_category > "") $sql2 = $sql2 .
what about the form itself?
I see no problems in here (except of course that you disclosed your mySQL
host, login and password)
Cheers,
Maxim Maletsky
-Original Message-
From: Andre Bajew [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject:
57 matches
Mail list logo