Re: [PHP] if(isset($submit))
just use an input type=hidden and call it submit,thats what i do - Original Message - From: "jtjohnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 5:32 AM Subject: Re: [PHP] if(isset($submit)) > So I can forget using type="image" :( > Wah, it's not fair! > > :) J > > Martin Towell wrote: > > > I used this code > > > > > > > value="submit"> > > > > > > when I clicked on the image, I got this url > > > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > > > so php would get this as $submit_x and $submit_y > > > > HTH > > Martin > > > > -Original Message- > > From: jtjohnston [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 28, 2002 4:17 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] if(isset($submit)) > > > > Has anyone tried: > > > > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > > > instead of : > > > > >\"> > > > > I can't get this to work: > > if(isset($submit)) > > > > with: > > > > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > > > I'm not coding correctly? > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > John Taylor-Johnston > -- --- > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ >- Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if(isset($submit))
jtjohnston wrote: >I can't get this to work: >if(isset($submit)) > >with: > >src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > >I'm not coding correctly? > If you are testing for $submit a work around is to have a hidden field in your form that looks like this: That way any tests for $submit will come up as true once the form has been submitted, but you can still use an image for the actual button. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if(isset($submit))
Over kill? Martin Towell wrote: > or have a hidden field, maybe, called "submit" > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] if(isset($submit)) > > So I can forget using type="image" :( > Wah, it's not fair! > > :) J > > Martin Towell wrote: > > > I used this code > > > > > > > value="submit"> > > > > > > when I clicked on the image, I got this url > > > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > > > so php would get this as $submit_x and $submit_y > > > > HTH > > Martin > > > > -Original Message- > > From: jtjohnston [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 28, 2002 4:17 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] if(isset($submit)) > > > > Has anyone tried: > > > > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > > > instead of : > > > > >\"> > > > > I can't get this to work: > > if(isset($submit)) > > > > with: > > > > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > > > I'm not coding correctly? > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > John Taylor-Johnston > > - > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ >- Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
Re: [PHP] if(isset($submit))
Type image is great to use! Just make sure that when you are testing for the image variable you test for the x and y coordinates.. So name_x and name_y. Even better and a good habit would to make sure you have a hidden field with the same name as your submit button, because a lot of people including myself like to just hit enter instead of actually clicking on submit.. And when you just hit enter the submit button value isnt sent, but if you have that hidden field then that value will always be set. Happy Coding! Rick "The human mind is not capable of grasping the Universe. We are like a little child entering a huge library. The walls are covered to the ceilings with books in many different tongues. The child knows that someone must have written these books. It does not know who or how. It does not understand the languages in which they are written. But the child notes a definite plan in the arrangement of the books---a mysterious order which it does not comprehend, but only dimly suspects." - Albert Einstein > From: jtjohnston <[EMAIL PROTECTED]> > Organization: FLSH, Université de Sherbrooke > Reply-To: [EMAIL PROTECTED] > Date: Thu, 28 Feb 2002 00:31:28 -0500 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] if(isset($submit)) > > Nope, not following. > :) > More particularily why will isset accept type=submit and not type=image ? > > Martin Towell wrote: > >> I used this code >> >> >> > value="submit"> >> >> >> when I clicked on the image, I got this url >> >> file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 >> >> so php would get this as $submit_x and $submit_y >> >> HTH >> Martin >> >> -Original Message- >> From: jtjohnston [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, February 28, 2002 4:17 PM >> To: [EMAIL PROTECTED] >> Subject: [PHP] if(isset($submit)) >> >> Has anyone tried: >> >> > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> >> >> instead of : >> >> >\"> >> >> I can't get this to work: >> if(isset($submit)) >> >> with: >> >> > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> >> >> I'm not coding correctly? >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > -- > John Taylor-Johnston > - > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ > - Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] if(isset($submit))
or have a hidden field, maybe, called "submit" -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if(isset($submit)) So I can forget using type="image" :( Wah, it's not fair! :) J Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_y > > HTH > Martin > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] if(isset($submit)) > > Has anyone tried: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > instead of : > > >\"> > > I can't get this to work: > if(isset($submit)) > > with: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > I'm not coding correctly? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
Re: [PHP] if(isset($submit))
So I can forget using type="image" :( Wah, it's not fair! :) J Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_y > > HTH > Martin > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] if(isset($submit)) > > Has anyone tried: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > instead of : > > >\"> > > I can't get this to work: > if(isset($submit)) > > with: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > I'm not coding correctly? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
Re: [PHP] if(isset($submit))
Nope, not following. :) More particularily why will isset accept type=submit and not type=image ? Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_y > > HTH > Martin > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] if(isset($submit)) > > Has anyone tried: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > instead of : > > >\"> > > I can't get this to work: > if(isset($submit)) > > with: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > I'm not coding correctly? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
Re: [PHP] if(isset($submit))
It's because when you submit using an image they submit the exact x and y coordinates that were clicked on. Hope it helps! Rick "We do not have to visit a mad house to find disordered minds; our planet is the mental institution of the universe." - Unknown > From: jtjohnston <[EMAIL PROTECTED]> > Organization: FLSH, Université de Sherbrooke > Reply-To: [EMAIL PROTECTED] > Date: Thu, 28 Feb 2002 00:28:09 -0500 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] if(isset($submit)) > > I s'pose, but where/why are you getting submit.x=118&submit.y=20 > > Martin Towell wrote: > >> I used this code >> >> >> > value="submit"> >> >> >> when I clicked on the image, I got this url >> >> file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 >> >> so php would get this as $submit_x and $submit_y >> >> HTH >> Martin >> >> -Original Message- >> From: jtjohnston [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, February 28, 2002 4:17 PM >> To: [EMAIL PROTECTED] >> Subject: [PHP] if(isset($submit)) >> >> Has anyone tried: >> >> > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> >> >> instead of : >> >> >\"> >> >> I can't get this to work: >> if(isset($submit)) >> >> with: >> >> > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> >> >> I'm not coding correctly? >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > -- > John Taylor-Johnston > - > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ > - Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] if(isset($submit))
it's a browser thing, i guess, when you use an image as a submit button Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if(isset($submit)) I s'pose, but where/why are you getting submit.x=118&submit.y=20 Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_y > > HTH > Martin > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] if(isset($submit)) > > Has anyone tried: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > instead of : > > >\"> > > I can't get this to work: > if(isset($submit)) > > with: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > I'm not coding correctly? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
Re: [PHP] if(isset($submit))
I s'pose, but where/why are you getting submit.x=118&submit.y=20 Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_y > > HTH > Martin > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] if(isset($submit)) > > Has anyone tried: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > instead of : > > >\"> > > I can't get this to work: > if(isset($submit)) > > with: > > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> > > I'm not coding correctly? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064
RE: [PHP] if(isset($submit))
I used this code when I clicked on the image, I got this url file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 so php would get this as $submit_x and $submit_y HTH Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:17 PM To: [EMAIL PROTECTED] Subject: [PHP] if(isset($submit)) Has anyone tried: instead of : >\"> I can't get this to work: if(isset($submit)) with: I'm not coding correctly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php