开发者

Creating a sticky form in PHP

I am having issues creating a sticky for in PHP. It seems all the samples I can find online are using one pages for both the form and the processor. I have two separate pages. This is going to be a very long form and if a validation fails, and the user has to re-enter everything, they won't, they'll quit. So this is a vital feature for this form. Also, I am very new to开发者_开发知识库 PHP and haven't touched ASP for several years.

When all is said and done, this form will probably have over 50 items. It is using POST. What is the easiest way to convert my form to a sticky form?

The current form can be found here: http://family.themajdans.com/new_submission.php. Only the "Your Information" part works right now.

Any help would be appreciated.


I suggest using a framework/library which already has support for this feature to generate the form. There are several. In fact, I think there are several dozen.


Why don't you do it like this (one file PHP)... Make sure everything is well sanitized before doing this. Just filter out invalid inputs, and leave valid ones to be reposted.

<input type="text" name="age" value="'.$post["age"].'"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜