• AppleCentral Network:
  • Tech Support
  • |
  • Open Source
  • |
  • Apple News
  • |
  • Register Domains
  • |
  • SSL Certificates
  • |
  • iPod Deals
  • |
  • Mac Deals
  • |
  • Mac Book Shelf
  • AppleCentral Home
  • MacTech Magazine
    • About MacTech in Print
    • Issue Table of Contents
    • Subscribe
    • Risk Free Sample
    • Back Issues
    • MacTech DVD
    • MacTech Archives
    • MacTech Print Archives
    • MacMod
    • MacTutor
    • FrameWorks
    • develop
  • MacNews.com
    • MacNews News
    • Blog
    • MacTech Reviews and KoolTools
    • Whitepapers, Screencasts, Videos and Books
    • News Scanner
    • Rumors Scanner
    • Documentation Scanner
  • Apple Expo
    • by Category
    • by Company
    • by Product
  • MacForge.net
  • Job Board
  • Advertising
    • Benefits of MacTech
    • Mechanicals and Submission
    • Dates and Deadlines
    • Submit Apple Expo Entry
  • User
    • Register for Ongoing Raffles
    • Register new user
    • Edit User Settings
    • Logout
  • Contact
    • Customer Service
    • Webmaster Feedback
    • Submit News or PR
    • Suggest an article
  • Connect Tools
    • MacTech Live Podcast
    • RSS Feeds
    • Twitter
You are not logged in. [Log In] AppleCentral » Forums » Mac » Programming, Web Dev & Scripting » iWeb Forms
Register User    Forum List        Active Topics    FAQ
Topic Options
Hop to:
#528648 - 07/07/10 10:17 AM iWeb Forms
keymaker Offline


Registered: 12/14/07
Posts: 6026
I've got to the point where I need to place interactive forms on my Web site for various purposes e.g. 1. registration of persons wishing to take part in various projects and 2. educational dialogues for the kids trying to lean an academic subject at my site. I've got this book that explains how to make forms using PHP but I don't think iWeb supports the language... so my question is: how do I go about making an interactive form in iWeb? Thanks,

km

Top
#528663 - 07/07/10 12:34 PM Re: iWeb Forms [Re: keymaker]
Reboot Offline

Muhahahaha

Registered: 04/22/02
Posts: 15046
Loc: Columbus OH
No first hand experience but this or this may help if no one can help here. smirk
_________________________
AppleCentral Trivia

MM-MCF Trivia

Call the Doctor

Top
#528666 - 07/07/10 01:40 PM Re: iWeb Forms [Re: Reboot]
keymaker Offline


Registered: 12/14/07
Posts: 6026
Thanks, I'll check those out. Much to my surprise I got this to work on the input fields but the submit buttons didn't work - which I suppose is where HTML runs out and PHP kicks in:

{form method = “post” action= “docs.php}{pclass= “legend”}Personal information{/p}{fieldset id= “personal”}

{label}Name:{/Label}{input type=“text”
name=“name” size= “30” /}{br /}

{label}Address1{/Label}{input type=“text”
name=“address1” size= “50” /}{br /}

{label}Address2{/Label}{input type=“text”
name=“address2” size= “50” /}{br /}

{label}Town{/Label}{input type=“text”
name=“town” size= “50” /}{br /}

{label}City{/Label}{input type=“text”
name=“city” size= “50” /}{br /}

{label}Postcode{/Label}{input type=“text”
name=“postcode” size= “30” /}{br /}

{p id=“buttons”}{input type=“submit”
value=“Submit” /}{input type=“reset”
value=“Reset” /}{/p}

where { } = < >

km

Top
#528669 - 07/07/10 02:34 PM Re: iWeb Forms [Re: keymaker]
polymerase Offline


Registered: 04/19/02
Posts: 11640
A complete shot in the dark. You don't have a closing html for the form=method. Stick a {/form} on the end.

Wait, you're using iWeb. iWeb doesn't contain the ability to make forms so you need a third party cgi or javascript. (Which I guess you must be using since you got this far. )

So it could be a simple nonclosing of an HMTL call. Are you using something like BBedit to colorize the HTML? It can be handy for figuring out where the messed up code is.

Top
#528676 - 07/07/10 03:21 PM Re: iWeb Forms [Re: polymerase]
keymaker Offline


Registered: 12/14/07
Posts: 6026
Thanks - I had the closing form tag in the code but not in my post for some reason - cut and paste error. The actual form looks like this at the moment (below) but as you can see the submit buttons haven't worked. All I did was type up the code in Pages and cut and paste it into an HTML snippet which was obviously over-optimistic!






Top
#528693 - 07/07/10 05:51 PM Re: iWeb Forms [Re: keymaker]
polymerase Offline


Registered: 04/19/02
Posts: 11640
instead of id="buttons"
try
{input type="button" value="Submit" / }


or, if your code is correct, it could be that the plural "buttons" is tripping it up
so try
{p id=“button”}{input type=“submit”

Top
#528792 - 07/08/10 07:10 AM Re: iWeb Forms [Re: polymerase]
keymaker Offline


Registered: 12/14/07
Posts: 6026
Thanks, although it didn't seem to work. This is what one bloke says about getting PHP to process iWeb's HTML snippet:

http://www.eden.net.nz/7/20080520/

What does he mean by: "At the root level of my website, I create a file named .htaccess..." ?

km

Top
Previous Topic
View All Topics Index
Next Topic

Tweet

Preview

Moderator:  Acumowchek, MacGizmo, Reboot 
Print Topic
Switch to Threaded Mode
Publications, Articles and Industry Discussion
   »MacTech/MacNews Article Discussions
   »Apple World
Marketplace
   »Deals and Special Offers
      »Expired Offers
   »Trading Warehouse
Mac
   »Hardware
   »Software
   »Servers, Security, and Networking
   »Programming, Web Dev & Scripting
   »Windows and Virtualization
   »Cloud and Online Services
Mobile Technologies
   »iPhone Apps, AppStore, and iTunes
   »iPad, iPhone, iPod and Apple TV Hardware
Mods and Hacks
   »General Mods
      »Techniques
      »Miscellaneous
      »Mod Logs
   »Laptop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Desktop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Peripheral Mods
      »iPod Mods
      »Misc Mods
   »Software Hacks & Mods
General Discussion
   »Site Feedback & Issues
   »Stan's Lounge
   »Soapbox
Now Software Support
   »Announcements
   »Now X
      »FAQs
      »Discussion
   »Now Up-to-Date & Contact
      »Community Help
      »Tips and tricks
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
Board Rules · Mark all read
Contact Us · AppleCentral · Top

MacTech Only Search:
Community Search:

 
 
 

 
 
 
 
 
  • SPREAD THE WORD:
  • Slashdot
  • Digg
  • Del.icio.us
  • Reddit
  • Newsvine
  • Generate a short URL for this page:



AppleCentral. www.applecentral.com
Main office: 805-494-9797
Xplain's use of MacNews, AppleCentral and AppleExpo are not affiliated with Apple, Inc. MacTech is a registered trademark of Xplain Corporation. AppleCentral, MacNews, Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, MacTech Central, MacTech Domains, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corp. Sprocket is a registered trademark of eSprocket Corp. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
Generated in 0.030 seconds in which 0.019 seconds were spent on a total of 13 queries. Zlib compression enabled.
Powered by UBB.threads™ PHP Forum Software 7.5.8