8 Replies Latest reply on Dec 16, 2010 1:26 PM by Firefly0

    Has anyone tried to 'adapt' the site wizard form?

    Firefly0

      I'd like to add some extra fields to the basic form - has anyone tried this at all?

        • 1. Re: Has anyone tried to 'adapt' the site wizard form?
          Nancy OShea Adobe Community Professional & MVP

          Which site wizard form?

           

           

          Nancy O.
          Alt-Web Design & Publishing
          Web | Graphics | Print | Media  Specialists
          http://alt-web.com/
          http://twitter.com/altweb

          • 2. Re: Has anyone tried to 'adapt' the site wizard form?
            Firefly0 Level 1

            Sorry, the free feedback form from http://www.thesitewizard.com/wizards/feedbackform.shtml...

            I'm trying to add extra fields and need to know which of the php script coding I'd need to change to accomodate this.

             

            Can it be done?

            • 3. Re: Has anyone tried to 'adapt' the site wizard form?
              Level 4

              Generally-speaking, when you cut the description and phrasing of your question short it's reciprocated with a short answer. A "can it be done" question translates into yes/no/maybe answer. A more descriptive and specific question with examples of what you have and what you want will generally produce a more descriptive answer. Having said that, the answer to your question is yes.

               

              Whatever you do, don't pay for a thrid party form service unless you want to waste your money. Only users that have no idea how to create their own forms use a service. It's very easy to create a form processing script yourself. I'd also question the level of service that a business provides if they're recommending third party services for their solutions of something that can very easily be developed yourself...

              1 person found this helpful
              • 4. Re: Has anyone tried to 'adapt' the site wizard form?
                Nancy OShea Adobe Community Professional & MVP

                You get what you pay for. :-((

                 

                I highly recommend formmailer.php from DB Masters.  You can customize the HTML form any way you wish and simply add form labels to the form processing script.  Full instructions accompany the download.

                 

                Option #2 Forms to Go from Bebosoft (script generating software)
                http://www.bebosoft.com/products/formstogo/overview/

                 

                Option #3 A web form service like Wufoo.com

                 

                 

                Nancy O.
                Alt-Web Design & Publishing
                Web | Graphics | Print | Media  Specialists
                http://alt-web.com/
                http://twitter.com/altweb

                1 person found this helpful
                • 5. Re: Has anyone tried to 'adapt' the site wizard form?
                  Firefly0 Level 1

                  Ah-ha Thank you the _shocker, basically I have added a number of extra fields now into the sitewizard template but need to know how to link up the php scrip...

                   

                  My html is:

                   

                  <div id="apDiv7"><form action="feedback.php" method="post">
                  <table width="852" height="409" border="0" cellpadding="6" cellspacing="6">
                  <tr>
                    <td align="right"> </td>
                    <td> </td>
                    <td align="right"> </td>
                    <td width="256"> </td>
                  </tr>
                  <tr><td width="122" align="right"><label for="tswname">*Name</label>
                  :</td>
                    <td width="217"><input name="fullname" type="text" id="tswname" onblur="MM_validateForm('tswname','','R');return document.MM_returnValue" size="30" /></td>
                  <td width="186" align="right"><label for="tswchildsname">Childs Name</label>:</td><td><input type="text" name="childsname" id="tswname2" size="30" /></td>
                  </tr>
                  <tr><td align="right" valign="top"><label for="tswaddress">Address</label>:</td><td><textarea name="address" cols="23" rows="3" id="tswaddress" address="Address"></textarea></td>
                  <td align="right" valign="top"><label for="tswstartage">
                  <br />At what age would you like your child to start?</label>:</td><td valign="top"><p>
                    <label>
                      <input type="checkbox" name="Startage" value="checkbox" id="Startage_0" />
                      2 years</label>
                    <br />
                    <label>
                      <input type="checkbox" name="Startage" value="checkbox" id="Startage_1" />
                      2.5 years</label>
                    <br />
                    <label>
                      <input type="checkbox" name="Startage" value="checkbox" id="Startage_2" />
                      3 years</label>
                    <br />
                  </p></td>
                  </tr>
                  <tr><td align="right" valign="top"><label for="tswphone1">*Phone number<br />(home)</label>:</td><td><input name="phone1" type="text" id="tswphone1" onblur="MM_validateForm('tswphone1','','R');return document.MM_returnValue" size="30" /></td>
                  <td align="right"><label for="tswchilddob">Childs date of birth</label>:</td><td><input type="text" id="tswdob" name="childdob" size="30" />

                   

                  </tr>
                  <tr><td align="right" valign="top"><label for="tswphone2">Phone number<br />(mobile)</label>:</td><td><input type="text" id="tswphone2" name="phone2" size="30" /></td>
                    <td align="right"><label for="tswcomms">*Preferred method of communication</label>
                      :</td>
                    <td><p>
                      <label>
                        <input type="radio" name="comms" value="radio" id="comms_0" />
                        phone</label>
                      
                      <label>
                        <input type="radio" name="comms" value="radio" id="comms_1" />
                        email</label>
                      
                      <label>
                        <input type="radio" name="comms" value="radio" id="comms_2" />
                        mobile</label>
                      
                    </p>
                    <tr><td align="right" valign="top"><label for="tswemail">*Email address</label>
                        :</td><td valign="top"><input name="email" type="text" id="tswemail" onblur="MM_validateForm('tswemail','','RisEmail');return document.MM_returnValue" size="30" /></td><td align="right" valign="top"><label for="tswmessage">Message </label>:<br />
                  <br />
                  <br />
                  <br /></td><td><textarea name="message" cols="23" rows="3" id="tswmessage"></textarea>
                  </tr>
                    <tr>
                      <td height="41" align="right"> </td>
                      <td valign="top">* Denotes required field</td>
                      <td height="41" align="right"> </td>
                          <td height="41" align="center" valign="top"><input type="submit" value="  Send  " /></td>
                  </table>
                  </form>
                  </div>

                   

                  and the generic php script that I need to adapt is:

                   

                  [Copyright script deleted by moderator. The script's terms of use state explicitly that it cannot be reproduced or distributed,.]

                   

                  I just don't get which bit of the php I need to change to add in the extra fields that I require...

                  • 6. Re: Has anyone tried to 'adapt' the site wizard form?
                    Level 4

                    If you really want to learn then look into tutorial which explains the processing involved vs. using a wizard. Do you want to learn or do you want someone to just create the form for you and have it work? Usually you'd use the name atrri bute of the form field to send the POST value to the script to process an email. So form field with name="something" be turned into a php variable like this:

                     

                    $something = $_POST['something'];

                     

                    Then in php script concatenate the $something vairable into your message content. For your example if you had a form field with a name of something then you'd declare the variable in php and add it into your message body like this:

                     

                     

                    $messageproper =
                        "This message was sent from:\n" .

                        "This is the value of the something form field: $something\n" .
                        "$http_referrer\n" .
                        "------------------------------------------------------------\n" .
                        "Name of sender: $fullname\n" .
                        "Email of sender: $email\n" .
                        "------------------------- COMMENTS -------------------------\n\n" .
                        wordwrap( $comments, MAX_LINE_LENGTH, "\n", true ) .
                        "\n\n------------------------------------------------------------\n" ;

                     

                     

                    season to taste.

                    • 7. Re: Has anyone tried to 'adapt' the site wizard form?
                      Firefly0 Level 1

                      Fab, these look very interesting, thanks Nancy. I've never done a form

                      before so any help is very very welcome

                      • 8. Re: Has anyone tried to 'adapt' the site wizard form?
                        Firefly0 Level 1

                        Oh okay, that doesn't sound too difficult.

                        I do want to learn as oppose to relying on a wizard but this programming

                        language is new to me so just a matter of time I think.

                        Thanks the_shocker, you've been a great help