Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthornein
    • CommentTimeNov 3rd 2007 edited
     permalink
    Hi everyone,

    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.

    1) 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 <meta http-equiv="refresh" content="10; url=index.html"/> 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?

    2) 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 .

    Here is an example of the error:

    http://i69.photobucket.com/albums/i80/neiner/bug.gif

    Thanks,

    James
  1.  permalink
    James,

    Drop me an email through my profile and I will send over a basic easy to understand script I created when I was a PHP novice. It is still working on a number of sites 3 years on.

    John
    •  
      CommentAuthortsk
    • CommentTimeNov 6th 2007
     permalink
    when redirecting to the same page in your case you can tell the browser to scroll down to your form by giving your form an ID, like #contact, then using this as an anchor:

    This is one solution for the problem in case. With php you have a variety of possible answers but axe_sosharp probably will let you in on those in your conversation
    • CommentAuthorSammyH
    • CommentTimeNov 11th 2007
     permalink
    if you are looking for a php redirect function you can use header

    API:
    php.net/header


    Example:

    header("Location:" . $url);
    exit();
  2.  permalink
    I know this is an old thread but you should also make sure that your form submits to a new redirect so that your analytics software can track the completion of submissions and you can find out the value of your traffic in terms of conversions to goals. car rental new zealand
Add your comments
    Username Password
  • Format comments as (Help)