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

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

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

RE: [PHP] form hidden value

2011-08-08 Thread Dajka Tamas
First: use firebug, or something like that, and check what's get "written" in the page's source! Second: dump $_POST/$_GET, and check, whether "id" is set at all Is your input field between the and tags? Cheers, Tamas -Original Message- From: Chris Stinemetz [mailto:chrissti

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

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

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

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

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

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

Re: [PHP] Form validation and save the form

2010-01-11 Thread Bastien Koert
On Mon, Jan 11, 2010 at 10:18 AM, Angelo Zanetti wrote: > > > -Original Message- > From: aditya shukla [mailto:adityashukla1...@gmail.com] > Sent: 11 January 2010 05:03 PM > To: Robert Cummings > Cc: Angelo Zanetti; php-general > Subject: Re: [PHP] Form vali

RE: [PHP] Form validation and save the form

2010-01-11 Thread Angelo Zanetti
-Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 05:03 PM To: Robert Cummings Cc: Angelo Zanetti; php-general Subject: Re: [PHP] Form validation and save the form Thanks for the reply guys.Do you guys know a good resource where i can read

Re: [PHP] Form validation and save the form

2010-01-11 Thread aditya shukla
Thanks for the reply guys.Do you guys know a good resource where i can read from about form validation through PHP.There a lot on google but please suggest something if you guys know. Thanks Aditya

Re: [PHP] Form validation and save the form

2010-01-11 Thread Robert Cummings
Angelo Zanetti wrote: -Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 07:37 AM To: php-general Subject: [PHP] Form validation and save the form Hello Guys, I am trying to validate a form for user input , such that when something is mis

RE: [PHP] Form validation and save the form

2010-01-11 Thread Angelo Zanetti
-Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 07:37 AM To: php-general Subject: [PHP] Form validation and save the form Hello Guys, I am trying to validate a form for user input , such that when something is missing load the form again

Re: [PHP] Form validation and save the form

2010-01-10 Thread Paul M Foster
On Sun, Jan 10, 2010 at 11:37:06PM -0600, aditya shukla wrote: > Hello Guys, > > I am trying to validate a form for user input , such that when something is > missing load the form again by focusing on the wrong field.Say i don not > enter my address so when the form loads everything else is sav

Re: [PHP] Form validation issue

2009-12-24 Thread tedd
At 3:10 PM +0530 12/24/09, kranthi wrote: The javascript function formValidator() must return false if any errors are formed. The PHP only runs if the fields are set by testing using 'isset". You should definitely have a better validation than that. Remember that all users dont have javascript

Re: [PHP] Form validation issue

2009-12-24 Thread tedd
At 2:22 AM -0800 12/24/09, Allen McCabe wrote: Tedd, If you are using a post method using $_SERVER['PHP_SELF'], then values are present in the POST array, hence, you would write your html with interspersed php like so: id="username" /> No, I wouldn't do it that way. First, a "post method

Re: [PHP] Form validation issue

2009-12-24 Thread Allen McCabe
Tedd, If you are using a post method using $_SERVER['PHP_SELF'], then values are present in the POST array, hence, you would write your html with interspersed php like so: I sometimes use a function for the echoing of these values if I use the same form for first time (ie. registration) and edi

Re: [PHP] Form validation issue

2009-12-24 Thread kranthi
The javascript function formValidator() must return false if any errors are formed. >>The PHP only runs if the fields are set by testing using ‘isset”. You should definitely have a better validation than that. Remember that all users dont have javascript enabled. Moreover it is very easy to modify

Re: [PHP] Form validation issue

2009-12-21 Thread tedd
At 9:43 PM -0500 12/20/09, Ernie Kemp wrote: Good Day, I need help in in validating a form. The for is valdated be a javascript frist then if all the fields are filled in its valaded be PHP. The Form starts with: The "formVali

Re: [PHP] Form validation issue

2009-12-21 Thread Phpster
Does the js function return false on the errors to block the submission? Bastien Sent from my iPod On Dec 20, 2009, at 9:43 PM, "Ernie Kemp" wrote: Good Day, I need help in in validating a form. The for is valdated be a javascript frist then if all th

Re: [PHP] Form validation issue

2009-12-20 Thread Midhun Girish
"then the page gets reloaded and clears all the javascript error messages and does the PHP validation." That is because the form is getting submitted... make sure you js code prevents form submit if errors are found Midhun Girish On Mon, Dec 21, 2009 at 8:13 AM, Ernie Kemp wrote: > Goo

Re: [PHP] Form Spam

2009-08-20 Thread Gary
I have a honey pot on their already. Plus all the fields are correctly matched (first name to first name, comments to comments), which is what makes me think this is some .45 @ hour spammer just hunting and pecking from a hut in india. "Adam Randall" wrote in message news:b6d6f8360908200953s

Re: [PHP] Form Spam

2009-08-20 Thread Adam Randall
I was getting those as well on my website's form, so I added a honeypot field and a math question (I'm not overly fond of captchas for my own stuff, but anyway). The field itself is hidden, so bots will fill it out causing the e-mail sending routine to bail out (though they don't know that since it

Re: [PHP] Form Spam

2009-08-20 Thread Peter van der Does
On Thu, 20 Aug 2009 09:11:47 -0400 "Gary" wrote: > I have a client with a form on his site and he is getting spammed. > It appears not to be from bots but human generated. While they are > coming from India, they do not all have the same IP address, but they > all have gmail addresses, New York

Re: [PHP] Form Spam

2009-08-20 Thread Paul M Foster
On Thu, Aug 20, 2009 at 10:25:15AM -0400, Gary wrote: > There is plenty of commonaltiy in the submissions, all ip addresses start > with an 122. They all offer SEO services, but change the wording, so if I > tried to bannish any submissions with Search Engine, Ranking, Google etc, > they would pr

Re: [PHP] Form Spam

2009-08-20 Thread Gary
There is plenty of commonaltiy in the submissions, all ip addresses start with an 122. They all offer SEO services, but change the wording, so if I tried to bannish any submissions with Search Engine, Ranking, Google etc, they would probably just shift messages. There are also special charactor

Re: [PHP] Form Spam

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 09:11 -0400, Gary wrote: > I have a client with a form on his site and he is getting spammed. It > appears not to be from bots but human generated. While they are coming from > India, they do not all have the same IP address, but they all have gmail > addresses, New York

Re: [PHP] Form Validation

2009-08-13 Thread metastable
Ashley Sheridan wrote: > On Wed, 2009-08-12 at 12:21 -0400, Micheleh Davis wrote: > >> Please help. My form validation worked fine until I added the terms check >> at the bottom. Any ideas? >> >> >> >> //form validation step one >> >> function validateStep1(myForm){ >> >> //

Re: [PHP] Form Validation

2009-08-12 Thread Ashley Sheridan
On Wed, 2009-08-12 at 12:21 -0400, Micheleh Davis wrote: > Please help. My form validation worked fine until I added the terms check > at the bottom. Any ideas? > > > > //form validation step one > > function validateStep1(myForm){ > > // list of required fields > >

Re: [PHP] Form Process Question

2009-06-16 Thread Shawn McKenzie
Daniel Brown wrote: > On Tue, Jun 16, 2009 at 12:34, Gary wrote: >> I was thinking/hoping there was some mechanism that would calculate the >> amount without hitting the submit button, something like a OnExit command. >> Something that I would not have to work around the validation feilds being >>

Re: [PHP] Form Process Question

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 12:34, Gary wrote: > > I was thinking/hoping there was some mechanism that would calculate the > amount without hitting the submit button, something like a OnExit command. > Something that I would not have to work around the validation feilds being > lost and without having

Re: [PHP] Form Process Question

2009-06-16 Thread tedd
At 11:03 AM -0400 6/16/09, Gary wrote: I have a client that I have made some forms for. On one of the forms, their customers are to registar for a class. The cost of the class is 195 per person. She would like to have the people be able to have the total cost calculated for them before they su

Re: [PHP] Form Process Question

2009-06-16 Thread Shawn McKenzie
Gary wrote: > My my, someone woke up on the wrong side of the bracket > > Acutally, the silliness of the request has not been lost on me or the > client. And no, it is a simple 195 times number of people, which is usually > under 5, so, I understand your recent scratching of the head... >

Re: [PHP] Form Process Question

2009-06-16 Thread Gary
My my, someone woke up on the wrong side of the bracket Acutally, the silliness of the request has not been lost on me or the client. And no, it is a simple 195 times number of people, which is usually under 5, so, I understand your recent scratching of the head... I was thinking/hoping th

Re: [PHP] Form Process Question

2009-06-16 Thread Gary
Thanks for your reply, I dont know js Gary "Matthew Giddings" wrote in message news:1497284708.356841245165474329.javamail.r...@vmailbox1.svsu.edu... > Have you thought about using JavaScript? > > Matt Giddings > Web Programmer > Information Technology Services > Saginaw Valley State Universit

Re: [PHP] Form Process Question

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 11:03, Gary wrote: > I have a client that I have made some forms for.  On one of the forms, their > customers are to registar for a class.  The cost of the class is 195 per > person.  She would like to have the people be able to have the total cost > calculated for them befo

Re: [PHP] Form Process Question

2009-06-16 Thread Matthew Giddings
Have you thought about using JavaScript? Matt Giddings Web Programmer Information Technology Services Saginaw Valley State University http://www.svsu.edu - Original Message - From: "Gary" To: php-general@lists.php.net Sent: Tuesday, June 16, 2009 11:03:38 AM GMT -05:00 US/Canad

Re: [PHP] Form To Mail script generators for Linux

2009-03-23 Thread Bastien Koert
On Mon, Mar 23, 2009 at 10:33 AM, Jacques Manukyan wrote: > Take a look at > http://php.resourceindex.com/Complete_Scripts/Form_Processing/ > > Note that not all the scripts there are free though so look at type. > > By the way, as long as the server can run PHP and there are no specific > shell c

Re: [PHP] Form To Mail script generators for Linux

2009-03-23 Thread Jacques Manukyan
Take a look at http://php.resourceindex.com/Complete_Scripts/Form_Processing/ Note that not all the scripts there are free though so look at type. By the way, as long as the server can run PHP and there are no specific shell commands in the script, it should run on any operating system. -- J

Re: [PHP] Form to pdf

2009-03-19 Thread Gary
tedd Thanks much for your help! Gary "tedd" wrote in message news:p06240802c5e7f16c6...@[192.168.1.101]... > At 10:17 AM -0400 3/18/09, Gary wrote: >>I'm going to frame that and call my ma >> >>Can you direct me to how I can learn that? >> >>Thanks for your help. >> >>Gary > "Sperling Ins

Re: [PHP] Form to pdf

2009-03-19 Thread tedd
At 10:17 AM -0400 3/18/09, Gary wrote: I'm going to frame that and call my ma Can you direct me to how I can learn that? Thanks for your help. Gary "Sperling Institute of Technology Honoree" Gary: This: http://webbytedd.com/bb/pdf/ was produced from this: http://chir.ag/projects/pdfb

Re: [PHP] Form to pdf

2009-03-18 Thread George Larson
I'm going to print one to 'Fork and Zombies' and hang it in my office. I really mean that. On Wed, Mar 18, 2009 at 10:17 AM, Gary wrote: > I'm going to frame that and call my ma > > Can you direct me to how I can learn that? > > Thanks for your help. > > Gary > "Sperling Institute of Techno

Re: [PHP] Form to pdf

2009-03-18 Thread Gary
I'm going to frame that and call my ma Can you direct me to how I can learn that? Thanks for your help. Gary "Sperling Institute of Technology Honoree" "tedd" wrote in message news:p06240805c5e6afc21...@[192.168.1.101]... > At 5:48 PM -0400 3/17/09, Gary wrote: >>Is it possible to create

Re: [PHP] Form to pdf

2009-03-18 Thread tedd
At 5:48 PM -0400 3/17/09, Gary wrote: Is it possible to create an online form, that when filled out the fields will can be placed in a pdf form? Gary: Sure, here's an example: http://webbytedd.com/bb/pdf/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earths

Re: [PHP] Form to pdf

2009-03-18 Thread Gary
I sorry I was not more clear. I have a paper form which I have created into a PDF form with text fields. I would like to create an online form (html - PHP-MySQL) that people can fill in the text fields, having the information sent to me and the information then being inserted into the original

Re: [PHP] Form to pdf

2009-03-17 Thread 9el
On Wed, Mar 18, 2009 at 3:48 AM, Gary wrote: > Is it possible to create an online form, that when filled out the fields > will can be placed in a pdf form? Yes possible. But you wrote the query in a bit confused way. Trying to rephrase yours: you want a form which will let user choose a working

[PHP] Re: PHP Form email w/attachment

2008-12-18 Thread Carlos Medina
jeffery harris schrieb: I need to create a php form and mail it to a recipient (that I can do). My question is how do I create an area for a file (.doc, or .pdf) to be attached emailed along with other form data as well? -Jeff Hi Jeffery, you need to upload the File with the Form inputfie

Re: [PHP] Form Input Type="File"

2008-11-22 Thread Ashley Sheridan
On Sat, 2008-11-22 at 09:54 -0600, Shawn McKenzie wrote: > Stan wrote: > > Ashley, > > If you go back to the original append you will see the URLs. IE 6 SP1 > > returns exactly the string that appears in the > type=\"file\" /> text box, FireFox does not. I would assume that anyone > > using the

Re: [PHP] Form Input Type="File"

2008-11-22 Thread Shawn McKenzie
Stan wrote: > Ashley, > If you go back to the original append you will see the URLs. IE 6 SP1 > returns exactly the string that appears in the type=\"file\" /> text box, FireFox does not. I would assume that anyone > using the dialog would expect the behaviour that IE demonstrates. > > www.w3.o

  1   2   3   4   5   6   >