I am a newbie and am at a loss on how to clear field of a form.
My current form is the tradition form that check to see if it has been submitted.
After it has, validation of each field is performed and if all is ok a record is inserted in the data base. However, if validation fails, the error and the fields previously entered are redisplayed. When the error is corrected the form is again submitted and record inserted. At this point, I am trying to clear the form (reset it) by using first: clearing the $_post array and checking for empty did not work
second: setting and destroyinga session..did not work....any ideas? Thanks in advance.
bob302
0
Newbie Poster
Recommended Answers
Jump to PostI think that you need to post some code before anyone can really comment.
Jump to PostClear out your db credentials and email settings while you still can. Next time, remove them before posting.
All 8 Replies
chrishea
182
Nearly a Posting Virtuoso
bob302
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
bob302
0
Newbie Poster
imti321
35
Light Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
bob302
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.