Looking for a verb for...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Looking for a verb for...

Post by Ollie Saunders »

I'm looking for a verb meaning to check the submission of a form. "Submission check" is two words and so not acceptable.
Suggestions?

EDIT: Sorry, not to check the submission of a form...to check if a form has been submitted.
Last edited by Ollie Saunders on Tue Oct 17, 2006 9:03 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Validate(-ing), verify(-ing), check(-ing), process(-ing)...
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Initial post updated.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Transmission? What context are you using it in? Why does it need to be one word?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Test(-ing), pulse(-ing), palpitate(-ing), sniff(-ing), etc..
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

OK I'll be a little less enigmatic.
I've got this code:

Code: Select all

if ($form->isSubmitted()) {
Which not only returns whether the form has been submitted but also changes the state of $form from "yet to have checked for existance of submission" to "have checked for existance of submission". I want a short way of saying this in tutorials, so far I have used precheck and postcheck state but that's not very descriptive.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Also can anybody think of a shorter name then attachEventHandler and detachEventHandler?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Lose Event or EventHandler.
User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Post by bokehman »

What a weird question! How about tested and untested. Even better how about a boolean...

Code: Select all

if($form->validated)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Part of the problem is that you should probably split up the functionality (for clarity, concerns and testablity) into something like:

Code: Select all

$form->checkRequest();
if ($form->isSubmitted()) {
(#10850)
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

bokehman wrote:What a weird question! How about tested and untested. Even better how about a boolean...

Code: Select all

if($form->validated)
Its not whether it has been validated or not, its whether it has been submitted or not.
arborint wrote:Part of the problem is that you should probably split up the functionality (for clarity, concerns and testablity) into something like:

Code: Select all

$form->checkRequest();
if ($form->isSubmitted()) {
Hmm, yes. I'm going to give this some thought.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

OK thanks arborint, I decided to go with your idea. I'm using $form->initialize(), which solves my other problem too because it can be either uninitialized or uninitialized.
Post Reply