I’m working on a very basic contact form for my portfolio as opposed to using the generic script dreamhost provides. I have two questions hopefully someone can bring some insight into.
When an error occurs in the form, the user is sent to the formhandler.php which provides them with the errors, however, since my page is a one page portfolio they are redirected to the top of the page, but my form is at the bottom. I used the code, and it produces the results I want to a certain extent. The problem is, if you try to reload the page, it is sent into a loop of death in which the page continously refreshes itself. I am hoping there is a solution to this via php. I have seen some examples around but I cannot quite grasp the concept. Would anyone be able to provide me with some resources or solutions to this issue?
My second issue is with the form itself. If the user errors the form out, sometimes what will happen is the text blinker or the content itself will not be display directly in the form, but actually way below it. The only way it corrects itself is when the user goes clicks back onto the textfield of the form. This ONLY happens in Firefox so far, IE does not seem to have this bug. Does anyone know or heard of this issue before? I can provide a screenshot if needed, but you can test it yourself by going to my beta test page: http://beta.pedrazzinidesign.ca .