RE: [PHP] Re: php form action breaks script

2012-07-02 Thread Ford, Mike
> -Original Message- > From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: 28 June 2012 01:18 > > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with Davi

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread Jim Giner
"Tim Dunphy" wrote in message news:caozy0em5duhby-qv+y1u-e+c5yd7g5utauhomoyu3z7jma-...@mail.gmail.com... Notice: Undefined index: subject in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 23 Notice: Undefined index: elvismail in /Library/WebServer/Documents/

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 7:17 PM, Tim Dunphy wrote: One more little thing: These notices: > Notice: Undefined index: subject in > /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php > on line 23 Notice: Undefined index: elvismail in > /Library/WebServer/Documents/examples

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 7:17 PM, Tim Dunphy wrote: > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with David R's advice regarding adding > some strong quoting to th

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread Matijn Woudt
On Thu, Jun 28, 2012 at 2:17 AM, Tim Dunphy wrote: > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with David R's advice regarding adding > some strong quoting to th

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Al
It is a small price to pay for large block, especially if the text has any quotes. Personally, I can't keep them straight and delimit them, etc. Heredoc saves all that such stuff. $insert= MY_DEFINED; echo << On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to c

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread ma...@behnke.biz
Jim Lucas hat am 15. Juni 2012 um 18:39 geschrieben: > On 06/15/2012 06:35 AM, Jim Giner wrote: > > Hear, Hear for heredocs. The only way to code up your html. Took me a few > > months to discover it and haven't looked back since. > > > > > > > > The only problem I have with HEREDOC is I cann

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Jim Lucas
On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. The only problem I have with HEREDOC is I cannot use constants within them. -- Jim Lucas http://www.cmsws.com/ http://ww

[PHP] Re: php form action breaks script

2012-06-15 Thread Jim Giner
Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread ma...@behnke.biz
Al hat am 15. Juni 2012 um 14:29 geschrieben: > > > On 6/14/2012 7:28 PM, Tim Dunphy wrote: > > However if I change the form action to this, it breaks the page > > resulting in a white screen of death: error_reporting(E_ALL); ini_set('display_errors', 'On'); And what is the error message? -

[PHP] Re: php form action breaks script

2012-06-15 Thread Al
On 6/14/2012 7:28 PM, Tim Dunphy wrote: Hello list, I was just wondering if I could get some opinions on a snippet of code which breaks a php web page. First the working code which is basically an html form being echoed by php: if ($output_form) { echo ' Subject of email: B

Re: [PHP] Re: php form action breaks script

2012-06-14 Thread Paul Halliday
On Thu, Jun 14, 2012 at 10:17 PM, David Robley wrote: > Tim Dunphy wrote: > >> Hello list, >> >>  I was just wondering if I could get some opinions on a snippet of >> code which breaks a php web page. >> >>  First the working code which is basically an html form being echoed by >>  php: >> >> if (

[PHP] Re: php form action breaks script

2012-06-14 Thread David Robley
Tim Dunphy wrote: > Hello list, > > I was just wondering if I could get some opinions on a snippet of > code which breaks a php web page. > > First the working code which is basically an html form being echoed by > php: > > if ($output_form) { > > echo ' > Subject of email: > > Bod

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 5:02 PM, Daniel Brown wrote: > On Thu, Feb 16, 2012 at 10:57, Matijn Woudt wrote: >> >> What if the system PHP is running on not the same one as the one that >> is going to read the plain-text/CSV/.. files? I don't think it is good >> practice to use it when writing to fil

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 10:57, Matijn Woudt wrote: > > What if the system PHP is running on not the same one as the one that > is going to read the plain-text/CSV/.. files? I don't think it is good > practice to use it when writing to files. I often write files on a > Linux server that people are

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 4:09 PM, Daniel Brown wrote: > On Thu, Feb 16, 2012 at 09:53, Tedd Sperling wrote: > >    This means you can rest assured that the newlines will be > appropriate for the system on which PHP is running.  While it makes > little difference on the web, it makes a world of dif

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 09:53, Tedd Sperling wrote: > > Why the '.PHP_EOL' ? > > I've never seen that before and looking through the PHP documentation doesn't > give me much. Cross-compatibility. For systems which use \n, PHP_EOL will be \n. For systems which use \r\n, PHP_EOL will be \r\n

Re: [PHP] Form Post to different domain

2012-02-16 Thread Tedd Sperling
On Feb 14, 2012, at 1:39 PM, Daniel Brown wrote: > On Tue, Feb 14, 2012 at 13:36, Rick Dwyer wrote: >> >> I only have access to domain B... the one receiving the Form POST. > >Then all you should need to do is: > >a.) Verify that Domain A is indeed pointing to Domain B, to > the sc

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Thanks Dan. As it turned out the reason for not showing the passed values is that I didn't have "www" in the destination address and the values must have been getting lost when Apache redirected requests without www to the fully formed URL. --Rick On Feb 14, 2012, at 1:39 PM, Daniel B

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:36, Rick Dwyer wrote: > > I only have access to domain B... the one receiving the Form POST. Then all you should need to do is: a.) Verify that Domain A is indeed pointing to Domain B, to the script you expect, as a POST request. b.) In the POST-rec

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
On Feb 14, 2012, at 1:16 PM, Daniel Brown wrote: On Tue, Feb 14, 2012 at 13:14, Rick Dwyer wrote: Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POS

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:14, Rick Dwyer wrote: > Hello all. > > If I have a form on domain A that uses POST to submit data and I want to > submit the form to domain B on an entirely different server, how do I pull > the form values (... echo $_POST["myval"] returns nothing) from the form > a

[PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POST["myval"] returns nothing) from the form at domain B? --Rick -- PHP General Mailing List

Re: [PHP] form validation

2011-08-14 Thread Daniel P. Brown
On Sun, Aug 14, 2011 at 18:19, Ford, Mike wrote: > > The last part of that test is redundant, since if $_POST['market'] is > NULL isset($_POST['market'] will be FALSE. Good catch. Didn't even notice I typed that. Not that it would've done any damage, but a good reminder why code here is not

RE: [PHP] form validation

2011-08-14 Thread Ford, Mike
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of > Daniel P. Brown > Sent: 12 August 2011 16:53 > > On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz > wrote: > > I have a select menu created by a foreach loop. I am trying to > > validate that there wa

Re: [PHP] form validation

2011-08-12 Thread Richard Quadling
On 12 August 2011 16:42, Chris Stinemetz wrote: > I have a select menu created by a foreach loop. I am trying to > validate that there was a selection made before it is submitted to the > database. But I am not doing something correctly. > > onchange="javascript:get(this.parentNode);"> > Choose..

Re: [PHP] form validation

2011-08-12 Thread Daniel P. Brown
On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz wrote: > I have a select menu created by a foreach loop. I am trying to > validate that there was a selection made before it is submitted to the > database. But I am not doing something correctly. Try using a combination of isset, empty, and is_n

[PHP] form validation

2011-08-12 Thread Chris Stinemetz
I have a select menu created by a foreach loop. I am trying to validate that there was a selection made before it is submitted to the database. But I am not doing something correctly. Choose... $value) { $selected = ''; if($value == $market) { $selected =

Re: [PHP] form handling

2011-08-12 Thread jean-baptiste verrey
it's (pretty) easy to send two forms at once with jquery nowadays, you just get all the input of the 2 forms and post them! function submit2Forms(form1DomId,form2DomId){ $datas={}; $(form1DomId).find(':input').each(function(){ if(($(this).attr('name') && $(t

Re: [PHP] form handling

2011-08-12 Thread Ashley Sheridan
Chris Stinemetz wrote: >> >> I would bet it's the quotes screwing up the js. Can / are you >escaping that variable when ajaxing it back? >> >> Bastien Koert >> 905-904-0334 >> > >I found a way to make the ajax work with one form. I removed the table >and the ajax worked just fine. Aparently you

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
> > I would bet it's the quotes screwing up the js. Can / are you escaping that > variable when ajaxing it back? > > Bastien Koert > 905-904-0334 > I found a way to make the ajax work with one form. I removed the table and the ajax worked just fine. Aparently you can't embed div containers within

Re: [PHP] form handling

2011-08-11 Thread Bastien
On 2011-08-11, at 9:13 PM, "Jim Giner" wrote: > Jim, > > This is what I am trying to do. One submit button for both forms going > to the same destination. > > The only reason I am doing this is because I can't figure out why my > ajax for my select menus is altering my tinyMCE textarea box. >

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
> Chris, > By definition, a 'submit' button submits a form.  Not 2 forms.  Each form > has to have it's own form. It is not feasible to submit two forms - since > the conversation from your client pc is going to be garbled even if you > could (JS?) do the second submit.  One transactiion is going t

Re: [PHP] form handling

2011-08-11 Thread Jim Giner
Jim, This is what I am trying to do. One submit button for both forms going to the same destination. The only reason I am doing this is because I can't figure out why my ajax for my select menus is altering my tinyMCE textarea box. Ultimately if I can figure out how to control the ajax within t

Re: [PHP] form handling

2011-08-11 Thread Jim Giner
I'm thinking that Chris means that he has a 'page' designed that utilizes two form tags for functionally different sets of input fields. The answer Chris is that a page can have many forms and whether or not they trigger the same script upon submit or not doesn't matter. Go ahead! My sample h

Re: [PHP] form handling

2011-08-11 Thread Chris Stinemetz
> > If the two forms call the same script that's fine.  If not, that will work > too.  Just realize that the inputs from one form will NOT be returned to the > script when the submit is used from the other form. > Jim, This is what I am trying to do. One submit button for both forms going to the

Re: [PHP] form handling

2011-08-11 Thread Ken Robinson
At 02:25 PM 8/11/2011, Chris Stinemetz wrote: I have two forms on the same php script. Is it possible to submit both forms to the same action="processform.php" with a single submit button? If you want to submit at the same time, why do you have two forms? Ken -- PHP General Mailing List (htt

Re: [PHP] form handling

2011-08-11 Thread Stuart Dallas
On 11 Aug 2011, at 19:25, Chris Stinemetz wrote: > I have two forms on the same php script. Is it possible to submit both > forms to the same action="processform.php" with a single submit > button? > > If so would you give me examples on how to handle this? Three options spring to mind... 1) Co

[PHP] form handling

2011-08-11 Thread Chris Stinemetz
I have two forms on the same php script. Is it possible to submit both forms to the same action="processform.php" with a single submit button? If so would you give me examples on how to handle this? I will also continue searching google. Thank you, Chris -- PHP General Mailing List (http://ww

RE: [PHP] form hidden value

2011-08-08 Thread Dajka Tamas
age- From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] Sent: Monday, August 08, 2011 11:23 PM To: PHP General Subject: [PHP] form hidden value I'm trying to pass a hidden value with my form submission. Not sure what I am doing woring, but the value is not being passed. Query is___ $

Re: [PHP] form hidden value

2011-08-08 Thread Daniel P. Brown
On Mon, Aug 8, 2011 at 17:23, Chris Stinemetz wrote: > > You should drop the quotes around the $id[] array, and also figure out how you want to extract the element from the array. For example: -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321

[PHP] form hidden value

2011-08-08 Thread Chris Stinemetz
I'm trying to pass a hidden value with my form submission. Not sure what I am doing woring, but the value is not being passed. Query is___ $query = "SELECT id, store_name FROM store_list WHERE store_type = '$type' AND id_market = '$market' " ; $result = mysql_query($query) or die(rep

Re: [PHP] Form Already Filled Out

2011-08-04 Thread Ashley Sheridan
On Thu, 2011-08-04 at 17:02 +0100, jean-baptiste verrey wrote: > if you want to force the browser to not be able to have this behaviour you > need the name tag to always change > a quick example would be that > $_SESSION['formRandomName']=time(); > ?> > > > > 2011/8/4 Bálint Horváth > > > Hi

Re: [PHP] Form Already Filled Out

2011-08-04 Thread jean-baptiste verrey
if you want to force the browser to not be able to have this behaviour you need the name tag to always change a quick example would be that 2011/8/4 Bálint Horváth > Hi, > Use value="$_POST['user']" or sg like that because: > before send value eq null, after if returned -cause of a fail- the

Re: [PHP] Form Already Filled Out

2011-08-04 Thread Bálint Horváth
Hi, Use value="$_POST['user']" or sg like that because: before send value eq null, after if returned -cause of a fail- the inputs remain also set *autocomplete="off"* (at form) and if it doesn't work use js to set null values to input boxes (add a name for ur form...) Another way, use Google: "ja

Re: [PHP] Form Already Filled Out

2011-08-03 Thread James Yerge
On 08/05/2011 12:43 AM, wil prim wrote: > Hello, S i created a simple login system, and I am using sessions > Everything > seems to work fine, however; when I upload my files to my server and type my > domain name my index.php page comes up and the form is automatically filled > out > with

Re: [PHP] Form Already Filled Out

2011-08-03 Thread Thiago H. Pojda
Hmmm looks like you saved the password and your browser or OS may be filling it for you. Em 04/08/2011 01:42, "wil prim" escreveu: > Hello, S i created a simple login system, and I am using sessions. Everything seems to work fine, however; when I upload my files to my server and type my domain

[PHP] Form Already Filled Out

2011-08-03 Thread wil prim
Hello, S i created a simple login system, and I am using sessions  Everything seems to work fine, however; when I upload my files to my server and type my domain name my index.php page comes up and the form is automatically filled out with a username and password. How do i make it empty when I

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-21 Thread Nazish Zafar
Thanks! -- I'll definitely look into Netbeans. (The IDE that I was using didn't seem to recognize syntax errors.) On Mon, Feb 21, 2011 at 4:13 AM, Pete Ford wrote: > > Nazish, > Find yourself an editor or development environment that does source code > highlighting - this sort of error will be

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-21 Thread Pete Ford
On 20/02/11 21:37, Nazish wrote: Issue resolved! It turned out to be the use of quotations. Instead of double quotations to surround the $insert variable, it worked with single quotations: $insert = ' INSERT INTO user_info (login,password) VALUES ("'.$login.'", "'.$passw

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
: Tamara Temple To: PHP General Date created: , 12:27:46 AM Subject: [PHP] Submitting data to MySQL database using HTML/PHP form I'm wondering if anyone is going to comment on the transmittal and storage of plain text passwords -- PHP General Mailing List (http://www.php.net

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Tamara Temple
I'm wondering if anyone is going to comment on the transmittal and storage of plain text passwords -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread admin
tring($password)."' The double quote is in the wrong place. -Original Message- From: Nazish [mailto:naz...@gmail.com] Sent: Sunday, February 20, 2011 3:54 PM To: php-general@lists.php.net Subject: Re: [PHP] Submitting data to MySQL database using HTML/PHP form Update: I a

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
: php-general@lists.php.net Date created: , 10:53:35 PM Subject: [PHP] Submitting data to MySQL database using HTML/PHP form Update: I added "echo" statements after mysql_connect and mysql_select_db to check where the code was broken. These statements show up on the login.php

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
m_elensule Facebook: http://facebook.com/menelion Original message From: Nazish To: php-general@lists.php.net Date created: , 10:04:07 PM Subject: [PHP] Submitting data to MySQL database using HTML/PHP form Thanks everyone! However, when I click the "submit&q

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
l_real_escape_string($login)."','".mysql_real_escape_string($passwor > d)."')"; > > Here is the issue > > ," '.mysql_real_escape_string($password)." ' > > Your escaping incorrectly. > > It should be > ,' ".mysql_real_escape_string($pass

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Update: I added "echo" statements after mysql_connect and mysql_select_db to check where the code was broken. These statements show up on the login.php page after submitting the form, which means the MySQL connection works. So, the problem seems to lie with the *$insert *query... ideas? On Sun,

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Thanks everyone! However, when I click the "submit" button, the url simply moves to http://localhost/login.php (from home.php) and it is a blank page (apart from asking whether it should remember the password for future use). The values still do not move to the database. I included most of your su

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
y blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Nazish To: php-general@lists.php.net Date created: , 7:44:24 PM Subject: [PHP] Submitting data to MySQL database using HTM

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Donovan Brooke
This is probably a post better sent to the php-db list... but Whenever you work with MySQL, it's good to retrieve the actual error from mysql to help you troubleshoot. I posted this php_mysql lib a while back which is what I used on my last project. http://www.euca.us/downloads/euca_phpmysq

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Daniel Brown
On Sun, Feb 20, 2011 at 12:55, Daniel Brown wrote: > On Sun, Feb 20, 2011 at 12:53, Daniel Brown wrote: >> >>    If the value isn't that of your database password, there's your >> problem: register_globals.  A simpler way is to check the output of >> phpinfo(); to see if register_globals is enabl

[PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Hi there, I am creating a login page for my website. The users' information will be stored in a MySQL database. I have a registration form on my home page, and a separate file called "login.php" to process the user values. However, the entries are not going to the MySQL database (however, the valu

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, "Ron Piggott" wrote: > I am unable to retrieve the value of $referral_1 from: Sorry, I did't see the name=email attribute. It should be name="email[]", and you will get the data from the $_REQUEST['email'] variable or $_POST['email'] as array. If you want detaile

Re: [PHP] Form Processing

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 18:54, Ron Piggott wrote: > > $new_email = mysql_escape_string ( $_POST['referral_$i'] ); Because you're using literal quotes, so PHP is literally looking for the POST reference 'referral_$i'. Instead of using the style of field names you're using, why not use a v

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, "Ron Piggott" wrote: > I am unable to retrieve the value of $referral_1 from: That's very simple, you are missing the name attribute for your input elements, for example: Should be: Please read the following links: HTML Standards: http://www.w3.org/standa

[PHP] Form Processing

2010-11-29 Thread Ron Piggott
I am unable to retrieve the value of $referral_1 from: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); why? PHP while lopp to check if any of the fields were populated: $i=1; while ( $i <= 5 ) { $new_email = mysql_escape_string ( $_POST['referral_$i'] ); if ( strle

Re: [PHP] form post question

2010-10-28 Thread Kevin Kinsey
Bastien Koert wrote: On Thu, Oct 28, 2010 at 10:12 AM, Jack wrote: I have a form which has the following: ( quick clip ) http://www.abc.com/processing/process_form.php"; onSubmit="return preSubmit();"> Peer Guide When the form

Re: [PHP] form post question

2010-10-28 Thread Floyd Resler
On Oct 28, 2010, at 10:12 AM, Jack wrote: > I have a form which has the following: ( quick clip ) > > > > action="http://www.abc.com/processing/process_form.php"; onSubmit="return > preSubmit();"> > > > > > > value="Peer Guide" /> > >Peer Guide > >

Re: [PHP] form post question

2010-10-28 Thread Bastien Koert
On Thu, Oct 28, 2010 at 10:12 AM, Jack wrote: > I have a form which has the following: ( quick clip ) > > > >   action="http://www.abc.com/processing/process_form.php"; onSubmit="return > preSubmit();"> > > > >     > >                 value="Peer Guide" /> > >                Peer Guide > >      

[PHP] form post question

2010-10-28 Thread Jack
I have a form which has the following: ( quick clip ) http://www.abc.com/processing/process_form.php"; onSubmit="return preSubmit();"> Peer Guide When the form runs process_form.php it emails the content and ha

Re: [PHP] form validation and error display

2010-07-05 Thread Shreyas Agasthya
Ash - Thanks for correcting me [should I say us ;) ]. So, if my understandng is right, we should use # instead of the superglobal variable. David - Sorry to have written that. I was not aware of the implications of the grand old way of doing it. :) Regards, Shreyas On Mon, Jul 5, 2010 at 4:24 AM

Re: [PHP] form validation and error display

2010-07-05 Thread David Mehler
Hello Everyone, Thanks for all the suggestions on my sticky form problem. I've changed my action attribute to empty "" as per the article on PHP_SELF. I'm still having an issue getting the form to redisplay. For example, if i don't fill out the name field how would i get the form to redisplay with

Re: [PHP] form validation and error display

2010-07-04 Thread Ashley Sheridan
On Sun, 2010-07-04 at 18:23 -0400, David Mehler wrote: > Hello everyone, > Thanks for your suggestions. > For my variable in the value area of the text input field I enter > > value=" > > Prior to this I assign the variable $name to: > > $name = stripslashes($_POST['name']); > > I hope this is

Re: [PHP] form validation and error display

2010-07-04 Thread David Mehler
Hello everyone, Thanks for your suggestions. For my variable in the value area of the text input field I enter value=" Prior to this I assign the variable $name to: $name = stripslashes($_POST['name']); I hope this is correct. Sticky forms sounds exactly what i'm looking for. I've changed my ac

Re: [PHP] form validation and error display

2010-07-04 Thread Paul M Foster
On Sun, Jul 04, 2010 at 01:57:01PM -0400, David Mehler wrote: > Hello, > I've got a form with several required fields of different types. I > want to have the php script process it only when all the required > fields are present, and to redisplay the form with filled in values on > failure so the

Re: [PHP] form validation and error display

2010-07-04 Thread Shreyas Agasthya
David, If I understand your problem/issue here, you are talking about something called 'sticky forms'. This means - (i) the form references itself. (ii) that the form knows what the previous data was when it encounters any validation issues. You achieve (i) and (ii) by re-submitting the form with

[PHP] form validation and error display

2010-07-04 Thread David Mehler
Hello, I've got a form with several required fields of different types. I want to have the php script process it only when all the required fields are present, and to redisplay the form with filled in values on failure so the user won't have to fill out the whole thing again. One of my required fie

Re: [PHP] form validation code

2010-06-30 Thread Richard Quadling
On 30 June 2010 14:53, Shreyas Agasthya wrote: > http://www.php.net/manual/en/types.comparisons.php > The first table actually gives a very good understanding. > --Shreyas > > On Wed, Jun 30, 2010 at 7:05 PM, Richard Quadling > wrote: >> >> On 30 June 2010 14:23, Daniel P. Brown wrote: >> >    (

Re: [PHP] form validation code

2010-06-30 Thread Shreyas Agasthya
http://www.php.net/manual/en/types.comparisons.php The first table actually gives a very good understanding. --Shreyas On Wed, Jun 30, 2010 at 7:05 PM, Richard Quadling wrote: > On 30 June 2010 14:23, Daniel P. Brown wrote: > >(Hint: isse

Re: [PHP] form validation code

2010-06-30 Thread Richard Quadling
On 30 June 2010 14:23, Daniel P. Brown wrote: >    (Hint: isset != empty) More importantly ... isset != !empty $a = Null; $b = ''; // $c = undefined; $d = 'Hello'; isset($a) = False vs True = empty($a) isset($b) = True vs True = empty($b) isset($c) = False vs True = empty($c) isset($d) = T

Re: [PHP] form validation code

2010-06-30 Thread Daniel P. Brown
On Wed, Jun 30, 2010 at 09:07, David Mehler wrote: > Hello, > I've been looking at this to long, and am not seeing the issue. When i > had the below php code set to !empty instead of !isset as it is now I > got the value of the name variable echoed back, yet on sql insert that > field, along with

[PHP] form validation code

2010-06-30 Thread David Mehler
Hello, I've been looking at this to long, and am not seeing the issue. When i had the below php code set to !empty instead of !isset as it is now I got the value of the name variable echoed back, yet on sql insert that field, along with all others are empty, though no error is generated, just a bog

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
at this. > I am on Apache2 > > Thanks for your help. > > -- > Steve Marquez > Marquez Design > e-mail: smarq...@marquez-design.com > web: http://www.marquez-design.com > phone: 479-648-0325 > > > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote: > > > Ste

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
; > > -- > > Steve Marquez > > Marquez Design > > e-mail: smarq...@marquez-design.com > > web: http://www.marquez-design.com > > phone: 479-648-0325 > > > > > > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote: > > > > > Steve Marqu

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
e: 479-648-0325 > > > > > > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote: > > > > > Steve Marquez wrote: > > >> Good morning, > > >> > > >> I have a PHP form that I have been using for some time now on a Macbook > > Pro running

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
quez > Marquez Design > e-mail: smarq...@marquez-design.com > web: http://www.marquez-design.com > phone: 479-648-0325 > > > On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote: > > > Steve Marquez wrote: > >> Good morning, > >> > >> I have a PHP form

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
On Thu, 2010-06-03 at 12:58 -0500, Steve Marquez wrote: > Strangest thing... it just started working again. Odd. > > Is there an easy way to view the error logs? As you can tell, I am still a > novice at this. > I am on Apache2 > > Thanks for your help. > It depends. On most Linux distros t

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
: 479-648-0325 On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote: > Steve Marquez wrote: >> Good morning, >> >> I have a PHP form that I have been using for some time now on a Macbook Pro >> running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this >&

RE: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread HallMarc Websites
-Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Thursday, June 03, 2010 11:38 AM To: php General List Cc: Steve Marquez Subject: Re: [PHP] PHP Form submitting to MySQL not working... Steve Marquez wrote: > I am running Apache (not sure which version, where do I f

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
< sa...@hallmarcwebsites.com> wrote: > > > -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Thursday, June 03, 2010 11:38 AM > To: php General List > Cc: Steve Marquez > Subject: Re: [PHP] PHP Form submitting to MySQL not working... >

RE: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread HallMarc Websites
-Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Thursday, June 03, 2010 11:38 AM To: php General List Cc: Steve Marquez Subject: Re: [PHP] PHP Form submitting to MySQL not working... Steve Marquez wrote: > I am running Apache (not sure which version, where do I f

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Jim Lucas
Steve Marquez wrote: > I am running Apache (not sure which version, where do I find that?) it is > running on a Macbook Pro. > The error happened when I submitted the form. Sorry, should have been more specific. Where did you see the error? In your browser, error logs of your web server, etc..

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Jim Lucas
Steve Marquez wrote: > Good morning, > > I have a PHP form that I have been using for some time now on a Macbook Pro > running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this > morning, when I submitted (it is a journaling application) it came up with > t

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
orever. Perhaps the SDK install did something?Thanks, -- Steve MarquezMarquez Designe-mail: smarq...@marquez-design.comweb: http://www.marquez-design.comphone: 479-648-0325  On Jun 3, 2010, at 8:59 AM, Ashley Sheridan wrote: On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote: Good morning,

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Nilesh Govindarajan
On Thu, Jun 3, 2010 at 7:26 PM, Steve Marquez wrote: > Good morning, > > I have a PHP form that I have been using for some time now on a Macbook Pro > running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this > morning, when I submitted (it is a journaling appli

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote: > Good morning, > > I have a PHP form that I have been using for some time now on a Macbook Pro > running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this > morning, when I submitted (it is a journaling

[PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Good morning, I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came up with the following error: No such file or directory

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Alice Wei
> From: ak...@telkomsa.net > To: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: RE: [PHP] Dynamic Menus in a PHP Form Issue > Date: Tue, 25 May 2010 08:59:08 +0200 > > -Original Message- > From: Alice Wei [mailto:aj...@alumni.iu.edu] > Sent: 24 May

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Arno Kuhl
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 24 May 2010 04:47 PM To: php-general@lists.php.net Subject: [PHP] Dynamic Menus in a PHP Form Issue Hi,I have a snippet as in the following: Select the type of your starting point of interest

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 11:38 AM -0400 5/24/10, tedd wrote: At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: id="start_menu"> onclick="alert(document.form1.start)"/> Apartment If I tried to p

  1   2   3   4   5   6   7   8   9   10   >