Forms on a page

Hello there,

Had a hunt through the forum and can't find anything relating to forms within a ZenPage page.

I am using emailmeform to create a Contact Me form, and I want to insert it into a ZenPage page. The only problem is that when I do, the form and its buttons are greyed out. I've used the HTML option in the page editor to insert the <form method...> to </form> code. There also appears to be a problem with the sizing of this page since inserting the <form> HTML.

The page I've done this to is

http://www.ourstorespace.co.uk/HuwAlban/Site/index.php?p=pages&title=Form-page

Is it that ZenPage does not allow for forms to be inserted? Or have I done it all wrong?

Many thanks,

Huw

Comments

  • I do not know where you got the html to insert for this form. But all your input and textarea fields are marked as `readonly` or `disabled`, so naturally you cannot enter data into them.
  • acrylian Administrator, Developer
    Also, if you want just a email form I suggest you take a look at the contact_form plugin. This provides an function you can put into one of the codeblocks to be displayed on your site (note that you need to add the codeblock function to the theme, it is not implemented).
  • Thank you very much for your prompt replies.

    Below is the HTML that I am pasting into the page. I have used this code in my old site before moving onto ZenPhoto/ZenPage. Please note that I have not marked anything as readonly or disabled. I have re-inserted this code again today. It pastes just fine, but when I save the page, log out and then revisit the admin system the disabled="true" and readonly="true" appear. It is almost as if these items are being added within the HTML editor?

    Paste of form code:

    <form method="post" action="http://free.allforms.mailjol.net/u/113724.php">
    <p>
    <font face="Arial" color="#000000">E-mail address: <input type="text" size="50"
    name="E-mail" value="your_email@your_ISP.com">
    Note:- you must enter a valid email address.
    Failure to do so mayl prevent me from receiving this message and/or replying.
    If you do not have an email address then leave this field alone and fill
    in the telephone number field below.</p>
    <p>Telephone number:       <input type="text" size="25"
    name="TelNumber" value>
    Name:   
                           
    <input type="text" size="37" name="ContactName">
    Home town & county:    <input type="text" size="37" name="HomeTown">
    Message:
    <textarea name="Message" rows="5" cols="50"></textarea> </p>
    <p>
    <input type="submit" value="Submit" name="Submit">  <input type="reset" value="Reset"
    name="B1"></font>                                                                                                                              <a
    title="Form to E-mail: Unlimited" target="_blank" href="http://allforms.mailjol.net"><img
    border="0" src="http://a.mailjol.net/?a=logo&i=afm" width="97" height="32"> </p>
    </form>

    With regard to the contact_form plugin, I am really sorry but I don't understand what you are suggesting. Code blocks and adding functions to the theme is beyond my knowledge. If I could get the form above to work in a ZenPage page then I'm sorted :o)

    Thanks,

    Huw
  • I guess I really don't know what the editor is doing. Maybe it is disabling these fields. You could consider using a codeblock for your form, that might bypass this problem.
  • Hello again. Many thanks for the advice. I have persisted with the codeblock and finally worked out how to do it!

    The page

    http://www.ourstorespace.co.uk/HuwAlban/Site/index.php?p=pages&title=Form-page

    now shows a form using the contact_form plugin.

    One issue remains however. I've tested the form several times and it appears to work fine, but I don't get an email in my inbox as a result. I've triple checked the email address for the form to send to and it is correct. I've also trawled through the admin system and the forum looking for others with contact_form setup issues and cannot find any.

    Am I missing something obvious?

    Loving your work!

    Huw
  • I would assume you need to put the proper URL in the form action to post to the email handling site. In your text above it is

    ``

    But I am not familiar with email providers, so I don't really know. At any rate, there needs to be POST handling code somewhere to process your form.
  • acrylian Administrator, Developer
    You could also check if the `mail()/sendmail` php function is configured on your server's php. The contact form that uses Zenphoto mail functions depends on that.
  • OKay I have several questions about Banners and Logos. I know for sure this topic has been covered in the past but after reading one or two posts I learned pretty quickly that it is quite possible that Behavior and solutions have changed from release to release so I am hoping I can get clarification for what I need to do in the current release.

    So I gather I need to change index.php, search.php, image.php and a few more

    My coding skill is near to nothing so Must I hire a pro to do this for me or could I download these files and edit them i dreamweaver where I would take a wysiwyg approach and let the code look after itself.

    My initia attempts at doing things with dreamweaver failed. index.php is blank in the design panel...

    Regards

    Ronan

    Ronan
  • acrylian Administrator, Developer
    You need a server environment for Zenphoto, you can't just run it with Dreamweaver (that of course can be used for editing the theme files) from the harddrive as you can with static html files.
Sign In or Register to comment.