Reply to Re: Form submission .

Your name:

Reply:


Posted by Jonathan N. Little on 10/30/06 03:20

Vince Morgan wrote:
> "Sandeep" <sandeepsinghal@gmail.com> wrote in message
> news:1162174842.447626.122950@f16g2000cwb.googlegroups.com...
>> Vince Morgan wrote:
>>> Hi all,
>>> I have a form with about 10 fields. When I submit this form
> I
>>> would like it to send the cgi data for processing, and remain static.
>>> The form in part below;
>>>
>>> <form method="post" name="MSDSform" action="dummy.php" onSubmit="return
>>> checkSubmit();">
>>> <!-- inputs and selects -->
>>> <input type="submit" value=" Submit ">
>> Check the return value for your function "checkSubmit", if it is always
>> false, your form would never be submitted
>>
> Yes, the function checkSubmiit() returns true when the conditions are
> correct, and the form posts the data accordingly.
> That part is working fine. However, I don't think I explained my problem
> very well initialy.
> Presently, at the moment of submision, my page wants to jump to another page
> and throws a "HTTP 404". I would like it to post the data, and then wait
> for further submisions, ie remain static.

Well of course if "dummy.php" doesn't exist you'll get a 404. Your
form's ACTION *must* point to a real file! Now is can be the *same* file
as your original form, i.e., post to itself.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация