[PHP] {} forms

2011-11-16 Thread Tim Streater
I'm looking at the source of a web sockets server and I see these various forms: ws://{$host}{$path} HTTP/1.1 ${status}\r\n Are these simply equivalent to: ws:// . $host . $path HTTP/1.1 . $status . \r\n; and if so, is there any particular benefit to using that form? Or if not, what

Re: [PHP] {} forms

2011-11-16 Thread Richard Quadling
On 16 November 2011 13:56, Tim Streater t...@clothears.org.uk wrote: I'm looking at the source of a web sockets server and I see these various forms:  ws://{$host}{$path}  HTTP/1.1 ${status}\r\n Are these simply equivalent to:  ws:// . $host . $path  HTTP/1.1 . $status . \r\n; and if

Re: Re: [PHP] {} forms

2011-11-16 Thread Tim Streater
On 16 Nov 2011 at 14:27, Richard Quadling rquadl...@gmail.com wrote: If you want to embed $array[CONSTANT], then the {} is used. I use {} out of habit for non arrays. Not sure if there is an impact. http://docs.php.net/manual/en/language.types.string.php#example-71 shows the use. Oh.

Re: [PHP] {} forms

2011-11-16 Thread Robert Cummings
On 11-11-16 09:27 AM, Richard Quadling wrote: On 16 November 2011 13:56, Tim Streatert...@clothears.org.uk wrote: I'm looking at the source of a web sockets server and I see these various forms: ws://{$host}{$path} HTTP/1.1 ${status}\r\n Are these simply equivalent to: ws:// . $host .

Re: [PHP] Self-Process php forms or not?

2009-10-06 Thread Philip Thompson
On Oct 5, 2009, at 7:42 PM, Manuel Lemos wrote: Hello, on 10/05/2009 03:02 PM Philip Thompson said the following: I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name=submit for the submit

RE: [PHP] Self-Process php forms or not?

2009-10-05 Thread tedd
At 7:25 PM +0100 10/4/09, MEM wrote: Unfortunately, I'm really REALLY on a rush. I saw a bumper sticker the other day which read: Humpty Dumpty was rushed Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] Self-Process php forms or not?

2009-10-05 Thread Philip Thompson
On Oct 2, 2009, at 3:00 AM, Manuel Lemos wrote: Hello, on 10/02/2009 04:41 AM kranthi said the following: I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name=submit for the submit button instead,

Re: [PHP] Self-Process php forms or not?

2009-10-05 Thread Manuel Lemos
Hello, on 10/05/2009 03:02 PM Philip Thompson said the following: I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name=submit for the submit button instead, that will pass the value of the submit

RE: [PHP] Self-Process php forms or not?

2009-10-04 Thread MEM
Thanks a lot. To all. For the moment, I'm with the redirect solution that others have pointed. But after seen tedd example and watch Manuel videos, I'm starting to understand how the hidden field solution work as well. Well... I'm *starting* to understand I've not fully understand it yet,

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
On 10/4/09 9:25 AM, MEM tal...@gmail.com wrote: Thanks a lot. To all. For the moment, I'm with the redirect solution that others have pointed. But after seen tedd example and watch Manuel videos, I'm starting to understand how the hidden field solution work as well. Well... I'm *starting*

RE: [PHP] Self-Process php forms or not?

2009-10-04 Thread MEM
i don't think so. if the user requests the page a_form.php then the server will normally execute the a_form.php script regardless whether the form was submitted or not. to display a blank form, the user probably requests a_form.php with the GET method and probably without any GET

RE: [PHP] Self-Process php forms or not?

2009-10-04 Thread tedd
At 3:39 PM +0100 10/4/09, MEM wrote: i don't think so. if the user requests the page a_form.php then the server will normally execute the a_form.php script regardless whether the form was submitted or not. to display a blank form, the user probably requests a_form.php with the GET

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
On 10/4/09 10:39 AM, MEM tal...@gmail.com wrote: i don't think so. if the user requests the page a_form.php then the server will normally execute the a_form.php script regardless whether the form was submitted or not. to display a blank form, the user probably requests a_form.php with the

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
On 10/4/09 10:55 AM, tedd tedd.sperl...@gmail.com wrote: At 3:39 PM +0100 10/4/09, MEM wrote: i don't think so. if the user requests the page a_form.php then the server will normally execute the a_form.php script regardless whether the form was submitted or not. to display a blank

RE: [PHP] Self-Process php forms or not?

2009-10-04 Thread MEM
i agree that it does seem a bit as though Márcio is in such a hurry to make something work that the tasks of learning and understanding the fundamentals are being left aside. while that's maybe understandable, it's a bit frustrating when we're trying to explain the fundamentals. Thanks a

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread Tom Worster
On 10/2/09 10:24 AM, tedd tedd.sperl...@gmail.com wrote: At 1:55 PM +0530 10/2/09, kranthi wrote: and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. That depends upon how sloppy you are in coding. NONE of

RE: [PHP] Self-Process php forms or not?

2009-10-03 Thread tedd
At 7:11 PM +0100 10/2/09, MEM wrote: I don't want to take another path. The hidden fields seems the way to go. However, you gave me the example above, and I'm not understanding how can I pass from your example: A multi-step form. To what I was looking form: 1 step form with a success page that

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread tedd
At 9:42 AM -0400 10/3/09, Tom Worster wrote: On 10/2/09 10:24 AM, tedd tedd.sperl...@gmail.com wrote: At 1:55 PM +0530 10/2/09, kranthi wrote: and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. That

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread Tom Worster
On 10/2/09 10:06 AM, MEM tal...@gmail.com wrote: I'm now understanding that even if the form is submitted to self, we can still use a redirect to a success_message_page.php. However, we must do this redirect, AFTER the form has submitted to himself. It's the only thing that we have to pay

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name=submit for the submit button instead, that will pass the value of the submit button to the action script. above all i use a template engine, smarty

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Manuel Lemos
Hello, on 10/02/2009 04:41 AM kranthi said the following: I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name=submit for the submit button instead, that will pass the value of the submit button

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
That only works if the user clicks on that submit button. If the user hits the enter key in a text input, the form is submitted but the submit input variable is not set. That is why an hidden input is a safer solution. i doubt that, because i use the above mentioned method in nearly all of my

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Ashley Sheridan
On Fri, 2009-10-02 at 13:55 +0530, kranthi wrote: and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. You say you don't use hidden fields because they can be modified too easily, yet you say you check for the

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread kranthi
You say you don't use hidden fields because they can be modified too easily, yet you say you check for the submit button? Which out of the two do you do, as last time I checked, modifying one form field is as easy as changing any other! I completely agree with you. changing submit text is as

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread MEM
McConnell Subject: Re: [PHP] Self-Process php forms or not? You say you don't use hidden fields because they can be modified too easily, yet you say you check for the submit button? Which out of the two do you do, as last time I checked, modifying one form field is as easy as changing any

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
At 1:55 PM +0530 10/2/09, kranthi wrote: and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. That depends upon how sloppy you are in coding. NONE of my hidden variables pose any security problems whatsoever.

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
At 3:06 PM +0100 10/2/09, MEM wrote: I want to apologize to you all. I have mentioned two things on the same basket, but it was not appropriate. Since a confirmation page is not the same thing as a success page. Let's forget about the confirmation page, since it's not required. I'm now

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread MEM
You can set it up any number of ways. There is no absolute need for a redirect. Everything can be done in one form, or not -- your choice. Cheers, tedd Yes. But since I don't want to display a success information + form fields, but only the success information, I believe the only way we

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
At 3:35 PM +0100 10/2/09, MEM wrote: You can set it up any number of ways. There is no absolute need for a redirect. Everything can be done in one form, or not -- your choice. Cheers, tedd Yes. But since I don't want to display a success information + form fields, but only the success

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Ben Dunlap
Yes. But since I don't want to display a success information + form fields, but only the success information, I believe the only way we have to do this is by either use javascript and update a div or similar, or using only php, by redirecting to another page. Is this correct? Whether or not

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Manuel Lemos
Hello, on 10/02/2009 05:23 AM kranthi said the following: That only works if the user clicks on that submit button. If the user hits the enter key in a text input, the form is submitted but the submit input variable is not set. That is why an hidden input is a safer solution. i doubt that,

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread Manuel Lemos
Hello, on 10/02/2009 07:11 AM kranthi said the following: You say you don't use hidden fields because they can be modified too easily, yet you say you check for the submit button? Which out of the two do you do, as last time I checked, modifying one form field is as easy as changing any

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread MEM
this please? Ps- I've googled: php redirect success page on self submit form and similar... Regards, Márcio -Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: sexta-feira, 24 de Abril de 2009 14:10 To: PHP-General List Subject: RE: [PHP] Self-Process php forms

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread Mert Oztekin
May be it is best time to for you to start using Zend Framework - Zend_Form -Original Message- From: MEM [mailto:tal...@gmail.com] Sent: Thursday, October 01, 2009 3:01 PM To: 'Bob McConnell'; 'PHP-General List' Subject: RE: [PHP] Self-Process php forms or not? One last question about

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Tom Worster
On 10/1/09 8:00 AM, MEM tal...@gmail.com wrote: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form with a success page or a confirmation page that doesn't show

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread Jason
2009 13:01 To: 'Bob McConnell'; 'PHP-General List' Subject: RE: [PHP] Self-Process php forms or not? One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form with a success page

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Tommy Pham
Original Message From: Mert Oztekin mozte...@anadolusigorta.com.tr To: MEM tal...@gmail.com; Bob McConnell r...@cbord.com; PHP-General List php-general@lists.php.net Sent: Thursday, October 1, 2009 5:16:40 AM Subject: RE: [PHP] Self-Process php forms or not? May be it is best

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread tedd
At 1:00 PM +0100 10/1/09, MEM wrote: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form with a success page or a confirmation page that doesn't show the form? Can

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Ashley Sheridan
On Thu, 2009-10-01 at 09:30 -0400, Tom Worster wrote: On 10/1/09 8:00 AM, MEM tal...@gmail.com wrote: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Tom Worster
On 10/1/09 10:13 AM, tedd tedd.sperl...@gmail.com wrote: At 1:00 PM +0100 10/1/09, MEM wrote: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form with a success

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread MEM
-Process php forms or not? On 10/1/09 10:13 AM, tedd tedd.sperl...@gmail.com wrote: At 1:00 PM +0100 10/1/09, MEM wrote: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Manuel Lemos
Hello, on 10/01/2009 09:00 AM MEM said the following: One last question about this: I've done a self submit form, after hearing all the advantages expressed here. But how could we relate, without using javascript, a self submit form with a success page or a confirmation page that doesn't

Re: [PHP] forms problem

2009-06-04 Thread PJ
Andrew Ballard wrote: On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote: Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox     form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?      Â

Re: [PHP] forms problem

2009-06-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in

[PHP] forms problem

2009-06-03 Thread PJ
The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br /input type=text name=title value=? echo $passwd; ? size=10 /br

Re: [PHP] forms problem

2009-06-03 Thread Bastien Koert
On Wed, Jun 3, 2009 at 11:55 AM, PJ af.gour...@videotron.ca wrote: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br /            mot de

[PHP] forms problem

2009-06-03 Thread PJ
PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get it to show correctly? -- Hervé Kempf: Pour sauver la planète, sortez du

Re: [PHP] forms problem

2009-06-03 Thread Tom Chubb
2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br /            mot de passe br /input type=text

Re: [PHP] forms problem

2009-06-03 Thread PJ
Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br

Re: [PHP] forms problem

2009-06-03 Thread PJ
AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get it to

Re: [PHP] forms problem

2009-06-03 Thread Shawn McKenzie
PJ wrote: AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get

Re: [PHP] forms problem

2009-06-03 Thread Andrew Ballard
On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote: Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Manuel Lemos
to include browser side (Javascript) validation. I mean, I am not masochist to create something that will give me more work in the end to develop PHP forms based applications than if I would type HTML manually. Furthermore, the plug-ins that come with the package dramatically reduce the amount of code

RE: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Angelo Zanetti
-Original Message- From: Manuel Lemos [mailto:mle...@acm.org] Sent: 22 May 2009 09:56 To: Paul M Foster Cc: php-general@lists.php.net; Angelo Zanetti Subject: Re: [PHP] Forms validation and creation- easier solution? Hello, on 05/20/2009 11:09 AM Paul M Foster said the following

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Paul M Foster
. IMHO, creating forms by hand is by no means simpler, especially if you want to include browser side (Javascript) validation. I mean, I am not masochist to create something that will give me more work in the end to develop PHP forms based applications than if I would type HTML manually

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread Manuel Lemos
Viva, on 05/22/2009 10:36 AM Paul M Foster said the following: IMHO, creating forms by hand is by no means simpler, especially if you want to include browser side (Javascript) validation. I mean, I am not masochist to create something that will give me more work in the end to develop PHP

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread phphelp -- kbk
On May 20, 2009, at 2:03 AM, Angelo Zanetti wrote: We have done quite a few projects and we are looking to find better ways to implementing forms. This is fairly simple to roll-your-own. I do it from metadata. I check MySQL metadata for data types, lengths, and defaults. In addition, my

[PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Angelo Zanetti
Hi all. We have done quite a few projects and we are looking to find better ways to implementing forms. Forms seem to be quite time consuming and repetitive. Generally are there any classes or libraries that will assist with: 1. Easy creation of forms (fields and layout) 2.

Re: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Olexandr Heneralov
Hi! Zend framework has a wonderful solution to solve this task. You can download even the demo showing how to do this task Best regards, Alex. 2009/5/20 Angelo Zanetti ang...@zlogic.co.za Hi all. We have done quite a few projects and we are looking to find better ways to implementing

RE: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Angelo Zanetti
_ From: Olexandr Heneralov [mailto:ohenera...@gmail.com] Sent: 20 May 2009 09:08 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: Re: [PHP] Forms validation and creation- easier solution? Hi! Zend framework has a wonderful solution to solve this task. You can download

Re: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Olexandr Heneralov
:* 20 May 2009 09:08 *To:* Angelo Zanetti *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] Forms validation and creation- easier solution? Hi! Zend framework has a wonderful solution to solve this task. You can download even the demo showing how to do this task Best regards, Alex

RE: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Jay Blanchard
[snip] 1. Easy creation of forms (fields and layout) [/snip] I posted a form function several months ago that will help you with this. Just search the list archives -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Paul M Foster
On Wed, May 20, 2009 at 10:08:12AM +0300, Olexandr Heneralov wrote: 2009/5/20 Angelo Zanetti ang...@zlogic.co.za Hi all. We have done quite a few projects and we are looking to find better ways to implementing forms. Forms seem to be quite time consuming and repetitive.

RE: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Angelo Zanetti
-Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: 20 May 2009 16:09 To: php-general@lists.php.net Subject: Re: [PHP] Forms validation and creation- easier solution? On Wed, May 20, 2009 at 10:08:12AM +0300, Olexandr Heneralov wrote: 2009/5/20 Angelo

Re: [PHP] Forms validation and creation- easier solution?

2009-05-20 Thread Paul M Foster
On Wed, May 20, 2009 at 05:10:57PM +0200, Angelo Zanetti wrote: -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: 20 May 2009 16:09 To: php-general@lists.php.net Subject: Re: [PHP] Forms validation and creation- easier solution? On Wed, May 20, 2009

Re: [PHP] php forms - select menu selected behavior

2009-04-30 Thread Marcus Gnaß
Troy Oltmanns wrote: I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current iteration, if there's a match, then add selected code so the

Re: [PHP] php forms - select menu selected behavior

2009-04-30 Thread Ashley Sheridan
On Thu, 2009-04-30 at 11:06 +0200, Marcus Gnaß wrote: Troy Oltmanns wrote: I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current

[PHP] php forms - select menu selected behavior

2009-04-28 Thread Troy Oltmanns
I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current iteration, if there's a match, then add selected code so the category is prechosen. More

[PHP] Self-Process php forms or not?

2009-04-24 Thread MEM
I’m trying to understand the advantages behind opting by using a Self-Process PHP Form, instead of having a form and then point the action of the form to another .php page. Can anyone point me some resources about this. Why using one instead of another. What are the main advantages?

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread HostWare Kft.
...@gmail.com To: 'PHP-General List' php-general@lists.php.net Sent: Friday, April 24, 2009 2:34 PM Subject: [PHP] Self-Process php forms or not? I'm trying to understand the advantages behind opting by using a Self-Process PHP Form, instead of having a form and then point the action of the form

RE: [PHP] Self-Process php forms or not?

2009-04-24 Thread MEM
, 24 de Abril de 2009 13:53 To: 'PHP-General List' Subject: Re: [PHP] Self-Process php forms or not? I think the main advantage is that if something goes wrong processing the datas, you can show the form again without redirecting again. And if you have to change the behavior of the page, you

RE: [PHP] Self-Process php forms or not?

2009-04-24 Thread Bob McConnell
: MEM tal...@gmail.com To: 'PHP-General List' php-general@lists.php.net Sent: Friday, April 24, 2009 2:34 PM Subject: [PHP] Self-Process php forms or not? I'm trying to understand the advantages behind opting by using a Self-Process PHP Form, instead of having a form and then point the action

RE: [PHP] Self-Process php forms or not?

2009-04-24 Thread Jay Blanchard
[snip] What about the moto: let's separate business from presentation?[/snip] This depends on how strictly you're following any given model like MVC. IMHO you should use the right tool for the job. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread HostWare Kft.
, 2009 3:03 PM Subject: RE: [PHP] Self-Process php forms or not? So, on your opinion, we can call that method, on some circumstances, a good practice? What about the moto: let's separate business from presentation? Thanks once again, Márcio -Original Message- From: Sándor Tamás

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread Tony Marston
presentation? Thanks once again, Márcio -Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:sandorta...@hostware.hu] Sent: sexta-feira, 24 de Abril de 2009 13:53 To: 'PHP-General List' Subject: Re: [PHP] Self-Process php forms or not? I think the main advantage

[PHP] Re: Self-Process php forms or not?

2009-04-24 Thread Tony Marston
What you are describing is known as a self executing script where the script posts back to itself. In other words it has two passes - the first uses the GET method to build the screen for the user, which may or may not be empty, while the second uses the POST method to send the user's changes

RE: [PHP] Self-Process php forms or not?

2009-04-24 Thread MEM
To: php-general@lists.php.net Subject: Re: [PHP] Self-Process php forms or not? Having a script that is self executing - when it posts back to itself instead of a separate script - has absolutely nothing to do with the separation of business and presentation. It is possible for a single

[PHP] Re: Self-Process php forms or not?

2009-04-24 Thread Manuel Lemos
Hello, on 04/24/2009 09:34 AM MEM said the following: I’m trying to understand the advantages behind opting by using a Self-Process PHP Form, instead of having a form and then point the action of the form to another .php page. Can anyone point me some resources about this. Why using one

[PHP] forms and php

2008-01-24 Thread Mark Pashia
I am fairly new to the php/mySQL combo and just noticed an unusual behavior and don't know where to find the answer to fix this. It is probably common knowledge, but not to a newbie. If I fill in the fields of a form and hit the enter key to submit the form, no variables seem to be passed

Re: [PHP] forms and php

2008-01-24 Thread Jochem Maas
Mark Pashia schreef: I am fairly new to the php/mySQL combo and just noticed an unusual behavior and don't know where to find the answer to fix this. It is probably common knowledge, but not to a newbie. If I fill in the fields of a form and hit the enter key to submit the form, no

Re: [PHP] forms and php

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 3:34 AM, Mark Pashia [EMAIL PROTECTED] wrote: If I fill in the fields of a form and hit the enter key to submit the form, no variables seem to be passed along. If I use the submit button, everything works perfectly. It seems that other forms on the web work with the enter key

Re: [PHP] forms and php

2008-01-24 Thread Richard Lynch
Some older browsers didn't send along the button name/value when you hit enter, for a one-button form... But I've never heard of one that failed to send anything at all... It's almost for sure a browser issue though -- PHP doesn't really *do* anything with the data it gets. It just stuffs it

[PHP] forms class

2008-01-21 Thread nihilism machine
Why isnt this cleaning my form $_POST's class forms { var $UserInputClean; // Forms to variables function forms() { if (count($_POST) 0) { foreach($_POST as $curPostKey = $curPostVal) {

Re: [PHP] forms class

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 23:15 -0500, nihilism machine wrote: Why isnt this cleaning my form $_POST's class forms { var $UserInputClean; // Forms to variables function forms() { if (count($_POST) 0) { foreach($_POST as

RE: [PHP] Page not displayed/Forbidden on PHP forms

2007-11-22 Thread Andrés Robinet
: bestplace.biz  | Web: seo-diy.com -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 4:12 AM To: php-general@lists.php.net Subject: [PHP] Page not displayed/Forbidden on PHP forms We are running identical web applications with two different

[PHP] Page not displayed/Forbidden on PHP forms

2007-11-22 Thread Jeffrey
We are running identical web applications with two different hosts. Both are LAMP. With one of hosts, we are having reports of users seeing Page not displayed or 403 Forbidden after submitting forms. These forms are always sending data to the same page from which they started and the problem

Re: [PHP] need to alter FROM address when sending with PHP forms

2007-06-09 Thread Richard Lynch
On Thu, June 7, 2007 9:03 pm, Dylan Bouterse wrote: My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4. Our PHP programmer has developed quite a few PHP email forms and each time an email is sent, the FROM: address is [EMAIL PROTECTED] I don't know if this is a PHP

RE: [PHP] need to alter FROM address when sending with PHP forms

2007-06-08 Thread Jim Moseby
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4. Our PHP programmer has developed quite a few PHP email forms and each time an email is sent, the FROM: address is [EMAIL PROTECTED] I don't know if this is a PHP problem or apache problem (or even a sendmail problem for

[PHP] need to alter FROM address when sending with PHP forms

2007-06-07 Thread Dylan Bouterse
My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4. Our PHP programmer has developed quite a few PHP email forms and each time an email is sent, the FROM: address is [EMAIL PROTECTED] I don't know if this is a PHP problem or apache problem (or even a sendmail problem for that

Re: [PHP] need to alter FROM address when sending with PHP forms

2007-06-07 Thread Robert Cummings
On Thu, 2007-06-07 at 22:03 -0400, Dylan Bouterse wrote: My company has a RH ES4 web server running apache/2.2.2 and PHP 5.1.4. Our PHP programmer has developed quite a few PHP email forms and each time an email is sent, the FROM: address is [EMAIL PROTECTED] I don't know if this is a PHP

[PHP] Forms and destroying values

2007-01-12 Thread Beauford
Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does it. After the info is written I unset the variables by using unset($var1,

Re: [PHP] Forms and destroying values

2007-01-12 Thread Fredrik Thunberg
It doesn't help to reset any values. The form data is being resent by the browser itself, just if the user presses the submit button again with the same data. What you could do is mabye use a session to see if the particular user has sent form data before. /Fredrik Thunberg Beauford skrev:

Re: [PHP] Forms and destroying values

2007-01-12 Thread Miguel J. Jiménez
El Fri, 12 Jan 2007 03:27:12 -0500 Beauford [EMAIL PROTECTED] escribió: Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. I have tried to unset/destroy the variables in several different ways, but it still does

Re: [PHP] Forms and destroying values

2007-01-12 Thread clive
Beauford wrote: Hi, How do I stop contents of a form from being readded to the database if the user hits the refresh button on their browser. Perhaps a session variable that is set once the form is submitted. Depending on the data you could also look at having a primary key in the database.

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
. It will be this address, not the post that made the database update, that the browser will remember. Satyam - Original Message - From: Beauford [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Friday, January 12, 2007 9:27 AM Subject: [PHP] Forms and destroying values Hi

RE: [PHP] Forms and destroying values

2007-01-12 Thread Beauford
confused as to why giving them a null value doesn't work. Thanks to all. -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: January 12, 2007 8:21 AM To: Beauford; PHP Subject: Re: [PHP] Forms and destroying values This issue comes over and over again. The trick

Re: [PHP] Forms and destroying values

2007-01-12 Thread Stut
again. Hope that makes it clearer. -Stut -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: January 12, 2007 8:21 AM To: Beauford; PHP Subject: Re: [PHP] Forms and destroying values This issue comes over and over again. The trick, as I learned from this list, is to send

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 11:23 -0500, Beauford wrote: So the answer is, there is no way to destroy the values. Question then, what is unset() used for as it doesn't seem to do anything? With a language as good as PHP I though there would be some way to do this. I have got a workaround, but

RE: [PHP] Forms and destroying values

2007-01-12 Thread Németh Zoltán
Subject: Re: [PHP] Forms and destroying values This issue comes over and over again. The trick, as I learned from this list, is to send a redirect to the browser to a confirmation page, so the browser remembers the page redirected to and completely ignores the page that made

  1   2   3   4   >