RE: [PHP] form variables issue

2006-01-31 Thread Weber Sites LTD
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

Re: [PHP] form variables issue

2006-01-31 Thread Richard Correia
Can you check the source code? are there values in source, but it is not displayed on the browser? input type=text value=My Name is Richard name=first_name check this code snippet ?php echo get_magic_quotes_gpc(); // 1 echo $_POST['lastname']; // O\'reilly echo

Re: [PHP] form variables issue

2006-01-31 Thread Richard Lynch
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 show

Re: [PHP] form variables

2005-05-05 Thread Petar Nedyalkov
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:

Re: [PHP] form variables

2005-05-05 Thread bala chandar
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

Re: [PHP] form variables

2005-05-05 Thread Ryan Faricy
A hidden INPUT would be better... FORM ... INPUT TYPE=hidden NAME=yourVariableName VALUE=yourValue ... /FORM 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

Re: [PHP] Form variables + sessions, is this how it is supposed to work?

2004-01-24 Thread Jason Wong
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 I

Re: [PHP] Form variables + sessions, is this how it is supposed to work?

2004-01-24 Thread Paul
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:

Re: [PHP] Form variables + sessions, is this how it is supposed to work? - Grammar corrected

2004-01-24 Thread Paul
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: input name=test

RE: [PHP] form variables

2003-12-20 Thread Ewout de Boer
-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

Re: [PHP] form variables

2003-12-19 Thread Robert Cummings
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

Re: [PHP] form variables

2003-12-19 Thread Nitin
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 11:59 AM Subject: Re: [PHP] form variables On Sat, 2003-12-20

Re: [PHP] Form variables lost when duplicate records are found!

2003-09-02 Thread Matt Matijevich
[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

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread Chris Shiflett
--- 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

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread CPT John W. Holmes
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 between

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread Pushpinder Singh Garcha
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

Fwd: Re: [PHP] Form variables lost when duplicate records arefound !

2003-09-02 Thread Matt Matijevich
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

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Leif K-Brooks
: 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. CF High wrote: Hey all. This driving

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
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.

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
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

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
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 makes no difference. The variables are still not getting evaluated

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
--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 not getting passed || Apache, MySql, Win 2k Setup One too many $'s in your code, use

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
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 the

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
, 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 have to use the following syntax: INSERT into tablename (field name list) VALUES

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jason Wong
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'],

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup Mind giving a code snippet? Noah wrote: Thanks for the pleasant acronym, Leif. However, setting register_globals on or off makes no difference. The variables are still not getting evaluated BTW works fine

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
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['var1'],

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
- 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: I don't want to use $_REQUEST

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
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: [snip] Yup. Restarted Apache. PHP's still

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
: 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] I don't want to use $_REQUEST['my_passed_variable'] at all. Right now when I do an sql insert

RE: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread John W. Holmes
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 to extract($REQUEST) might have a downside? Otherwise

RE: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
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

Re: [PHP] Form variables not working

2002-11-16 Thread Leif K-Brooks
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? ?php if(array_key_exists('formfieldnamegoeshere',$_POST)){ print $_POST['formfieldnamegoeshere']; } ? Chris Jackson

Re: [PHP] Form variables not working

2002-11-16 Thread Ernest E Vogelsinger
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 ?php echo $PHP_SELF ? dosent print anything in the action of the form That's because

Re: [PHP] Form variables not working

2002-11-16 Thread Jason Wong
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 ?php echo $PHP_SELF ? dosent print anything in the action of the form and the Because register globals is

Re: [PHP] Form variables vs Sessions

2002-10-29 Thread Chris Shiflett
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

Re: [PHP] form variables

2002-09-09 Thread Chris Shiflett
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 document

Re: [PHP] form variables

2002-09-09 Thread Hans Prins
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 have a form field

Re: [PHP] form variables

2002-09-09 Thread Justin French
The text field only has newlines (\n) not breaks. For starters, in the text area tag, you need wrap=virtual: TEXTAREA name=mailingAddress wrap=virtual rows=6 cols=40/TEXTAREA Then instead of print $mailingAddressbr; try print nl2br($mailingAddress).br; ... which converts all new

Re: [PHP] Form Variables

2002-06-07 Thread Stuart Dallas
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 and

Re: [PHP] Form Variables

2002-06-07 Thread Beeman
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 Form.php body form action=form_act.php method=get enctype=multipart/form-data pPhrase: input name=phrase type=text id=phrase /p input name=Submit

Re: [PHP] Form Variables

2002-06-07 Thread Philip Olson
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: //

Re: [PHP] Form Variables

2002-06-07 Thread Beeman
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

Re: [PHP] form variables

2002-03-04 Thread Greg Donald
On Mon, 4 Mar 2002, Craig Westerman wrote: form action=quotestestphp method=post input type=text name=quote maxlength=10 size=10 input type=submit name=submitquote VALUE=Get Quote /form The above form passes $quote to the page quotestestphp How can I also pass the $quote to the URL so

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
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: [PHP] form variables

RE: [PHP] form variables

2002-03-04 Thread Dan Vande More
To: php-general-list; Greg Donald Subject: RE: [PHP] form variables 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

Re: [PHP] form variables

2002-03-04 Thread Tom Rogers
hi Use form action=quotestest.php method=get This will work as long as the form is not too big Tom At 11:14 AM 5/03/2002, Craig Westerman wrote: form action=quotestest.php method=post input type=text name=quote maxlength=10 size=10 input type=submit name=submitquote VALUE=Get Quote

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
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: form action=quotestest.php?quote=?$quote

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
-general-list Subject: Re: [PHP] form variables hi Use form action=quotestest.php method=get This will work as long as the form is not too big Tom form action=quotestest.php method=post input type=text name=quote maxlength=10 size=10 input

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
remove the name from the submit so it's just: input type=submit VALUE=Get Quote -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

Re: [PHP] form variables

2002-03-04 Thread Jason Wong
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 get

Re: [PHP] Form variables

2001-03-21 Thread Alexander Wagner
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

RE: [PHP] Form Variables!!!!!

2001-02-21 Thread Boget, Chris
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 = $formVarValuebr\n"; } Chris

Re: [PHP] form variables showing blank but query shows non-blank ??

2001-02-19 Thread Richard Lynch
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 .

RE: [PHP] form variables showing blank but query shows non-blank ??

2001-02-15 Thread Maxim Maletsky
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: