How to create contact form without using PHP?

For reasons that would take too long to explain I can’t use PHP to submit forms.

Is there a Javascript alternative? Like a self-contained submission form that doesn’t call on PHP?

Thanks in advance for any help.

2 Responses to “How to create contact form without using PHP?”

  • Ron:

    Not recommended, but will work:

    Basic Client-Side Mailto: Form:

    <form method="post" action="mailto:someone@$nailmail.com" enctype="text/plain">
    <input type="text" name="username"> : name <br>
    <input type="text" name="email"> : email <br>
    comments <br>
    <textarea name="comments" rows="10" wrap="hard">
    </textarea>
    <input name="redirect" type="hidden" value="index.html">
    <input name="NEXT_URL" type="hidden" value="index.html"><br>
    <input type="submit" value="Send">
    <input type="reset" value="Clear">
    </form>

    mailto – Web-based email Form Handler: http://www.washington.edu/webinfo/mailto/

    Contactify Widget (beta)(Ads): http://www.widgetbox.com/widget/contactify-widget-beta?_wbx_external=1&_wbx_autosubscribe=true&linknumber=

    Ron

  • assembler_man:

    Well, you can make your form manually in HTML, Javascript, PHP. But once you SUBMIT your form, all the information in it has to be processed on the server (either if you need to store info on a db, or whatever the case.)
    If your issue consists in not using PHP, then you can use ASP.NET, or ASP, etc; but you have to use a server platform to process your forms.

    In this case, you say it’s a contact form, that’s you write a mail then you submit the form a mail address. In a normal situation, when you submit that form, another server page (i.e. made in PHP) usually takes that info (username, destination address, subject, mail content) and calls server functions to send the mail. That kind of things can’t be done in Javascript because Javascript runs on people’s browsers. Javascript is client-side. PHP, ASP, ASP.NET, are server-side.

    I hope this helped,
    Leo.

Leave a Reply