PHP in iWeb

So I don't know if this is possible but can I use php in iWeb?

I am trying to create a form where a client can log onto the website enter their email address in the form and send it to my email address so I can add them to my email blast list. I want the form to automatically send me the email address when they hit the submit button.

When I do it in .html code, hitting the submit button opens an external email application, which I don't want!

Let me know if anyone has a plan for me to use php to make this code work the way I would like it to.

Thanks in advance!!!

MacBook, Mac OS X (10.6.1)

Posted on Oct 8, 2009 7:03 AM

Reply
6 replies

Oct 8, 2009 7:44 AM in response to calcio4io

I used the code:

<FORM ACTION="mailto:MYEMAILADDRESSHERE?subject=NEW EAMIL ADDRESS" ENCTYPE="text/plain" method="post">


E-mail<input type="text" size="35" maxlength="35" name="UserEmail">



Fax (Optional)<input type="text" size="20" maxlength="20" name="UserFAX">



<input type="submit" value="Submit">

<input type="reset" value="Clear Form">

</form>

and it opens an external email application..I am assuming that is because I have it coded in .html...If any one has a way for php code to work in iWeb, please fill me in!! thanks.

Oct 9, 2009 1:30 AM in response to calcio4io

If you are not using MobileMe as a host, rather an external host, then most have something called FormMail that you can upload directly onto the server.

Using FormMail, you will ultimately receive an e-mail, but an e-mail client will not open when the form is completed and submitted. When you submit the form, you are taken to a special page telling you the info that has been submitted and with a link back to the main site.

You can use this, or you could set up a data base, but using FormMail allows you to hand code the form yourself so that you get the look that you want with control over the look of the FormMail page too. The e-mail will then be sent, but the e-mail client does not open at the time of submission.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

PHP in iWeb

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.