What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    var field name not displaying in php script

    Asked by macpooh on February 01, 2013 at 08:45 PM

    I have 41 variable fields in a php data post thankyou page.  The problem is there one field that won't display.  I have double checked, triple checked, quadruple checked the spelling of the field name against your source code and autoresponders.  The problem is not my mistake.  I have even tried deleting the field and reinserting it in order to create an entirely new field name but it had no effect.

    Also, I have JotForm forms on 3 different pages.  The forms on 2 of the pages are displaying fine but the third (storyized.com/order.htm) is not.  There has been no change to the form or the code on this page so the problem is server side (again).  What is the source of the problem this week?

  • Profile Image
    JotForm Support

    Answered by jonathan on February 01, 2013 at 10:21 PM

    Hi,

    Can you please share to us the URL of the website where the forms are embedded. We will check.

    If you can now, please try also applying this change on the embedded form's URL -- if they are embedded using https, try changing the URL to https://secure.jotform.com/form/23616137752151 (assuming this is one of your form URL). Check if this will make any updating effect on the forms.

    Please mention also which field is that, that won't display, so I can compare the difference on the forms.

    Will await for your response.

    Thanks.

  • Profile Image

    Answered by macpooh on February 01, 2013 at 11:48 PM
    I used the URL you suggested but there is no change - the form still does not appear on the page (http://storyized.com/order.htm). Even if it did, why are we (the customers) always having to change the original code that has stopped working? We keep getting these work-arounds from tech support for JotForm's problems and bugs. Why doesn't JotForm just fix the problems on its end?
    The field that won't display is:
    $childsGuardian81 = $_POST[childsguardian81]
    which is a field on this form - https://secure.jotform.us/form/23616137752151
  • Profile Image
    JotForm Support

    Answered by jonathan on February 02, 2013 at 12:08 AM

    I am sorry for the confusion. Initialy, I was not sure of your embedded form on the website. I just noticed now that you are using the .us domain and it is a different form.

    The URL on your embdedded form should be

    https://secure.jotform.us/jsform/22023144558144

    i.e. the full js script 

    <script type="text/javascript" src="https://secure.jotform.us/jsform/22023144558144"></script>

    Please try updating this and check again. Keep us posted of the result.

     

    Thanks.

     

  • Profile Image

    Answered by macpooh on February 02, 2013 at 12:46 AM

    Ok that one worked but I'll ask again: Why do we have to keep changing to different URLs or different strings or change to way we're using the forms on our sites? One day a certain URL (which JotForm is supplying) works, the next day it doesn't. One day the forms perform normally, the next day they don't. We can't keep guess as to what is working on any given day. The URL I was using worked on and off for months - tonight it wasn't but on my other forms that URL (https://secure.jotform.us/jsform/xxxxxxx) is working fine tonight, so how do you explain that? You guys don't want to believe that your service just isn't stable.

    Also, what about the data field ($childsGuardian81 = $_POST[childsguardian81];) not populating as it should.  I know I am using the correct field name and my script is correct because all other fields display properly.  Here's the entire script:

    <?php

           $childsFirst = $_POST[childsfirst];
           $childsGender = $_POST[childsgender];
           $childsEthnicity = $_POST[childsethnicity];
           $childsGuardian81 = $_POST[childsguardian81];
           $guardiansEthnicity68 = $_POST[guardiansethnicity68];
           $childsAddress44 = $_POST[childsaddress44];
           $guardiansPhoneArea = $_POST[guardiansphone10][0];
           $guardiansPhoneNo = $_POST[guardiansphone10][1];                    
           $dedication = $_POST[dedication];
           $finalPage = $_POST[finalpage];
           $affirmation = $_POST[affirmations];
           $childsPicture13 = $_POST[childspicture13];
           $yourPicture = $_POST[yourpicture];
           $childsFirst17 = $_POST[childsfirst17];
           $childsPassword = $_POST[childspassword];
           $childsGender19 = $_POST[childsgender19];
           $childsEthnicity65 = $_POST[childsethnicity65];
           $childsGuardian20 = $_POST[childsguardian20];
           $guardiansEthnicity67 = $_POST[guardiansethnicity67];
           $childsFavorite = $_POST[childsfavorite];
           $trustedRelative = $_POST[trustedrelative];
           $childsFriend = $_POST[childsfriend];
           $dedication22 = $_POST[dedication79];
           $finalPage51 = $_POST[finalpage51];
           $affirmation71 = $_POST[affirmations71];       
           $childsPicture24 = $_POST[childspicture24];
           $yourPicture25 = $_POST[yourpicture25];
           $childsFirst62 = $_POST[childsfirst62];
           $childsGender61 = $_POST[childsgender61];
           $childsEthnicity64 = $_POST[childsethnicity64];
           $childsGuardian60 = $_POST[childsguardian60];
           $guardiansEthnicity = $_POST[guardiansethnicity];
           $childsFriend59 = $_POST[childsfriend59];
           $dedication58 = $_POST[dedication80];
           $finalPage52 = $_POST[finalpage52];
           $affirmation72 = $_POST[affirmations72];
           $childsPicture55 = $_POST[childspicture55];
           $yourPicture54 = $_POST[yourpicture54];
           $emailAddress = $_POST[emailaddress];
           $orderNumber = $_POST[ordernumber];

     ?>
    <head>
    <title>Order Received</title>
    <link target="_blank" href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
    <div align="center">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
            <td height="100">
                <div align="center">
                    <table border="0" width="960" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="21%" align="right" valign="bottom" rowspan="2"><img border="0" src="images/boy3.jpg" alt="Storyized - Personalized Children's Safety Books" title="We use your photos to create our illustrations" width="130" height="180"></td>
                            <td width="59%" align="right" valign="top"><a target="_blank" href="http://storyized.com" rel="nofollow noopener"><img border="0" src="images/child_safety_title1.bmp" alt="Storyized - Personalized Children's Safety Books" title="Storyized.com - Personalized Child Safety Books" width="420" height="105" align="left"></a></td>
                            <td width="20%" valign="bottom" rowspan="2"><img border="0" src="images/girl2.jpg" alt="Storyized - Personalized Children's Safety Books" title="Personalized text & illustrations facilitate enhanced learning & retention." width="146" height="185"></td>
                        </tr>
                        <tr>
                            <td width="59%" valign="top" align="center" height="80"><img border="0" src="images/title_bottom.png" alt="Storyized - Personalized Children's Safety Books" title="Beautifully illustrated, personalized children's books." width="512" height="52" align="right" hspace="10"></td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td width="50%">
                <div align="center">
                    <table height="30" width="960" cellspacing="0" cellpadding="0">
                        <tr>
                            <td><img border="0" src="images/edge1.jpg" alt="Storyized - Personalized Children's Safety Books" title="Give your children the tools to protect themselves." width="960" height="40"></td>
                        </tr>
                    </table>
                </div>
                <div align="center">
                    <table width="960" cellspacing="0" cellpadding="0" background="images/brushed1.png">
                        <tr>
                            <td valign="top" width="85" bgcolor="#DBDEFF" rowspan="2" background="images/spine1.jpg">&nbsp;</td>
                            <td align="center" height="100" width="874" colspan="2"><img border="0" src="images/x8.png" width="207" height="50">&nbsp;&nbsp;&nbsp; </td>
                        </tr>
                        <tr>
                            <td width="874" height="60" colspan="2">
                                <div align="center">
                                    <table width="764" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="td-70" bordercolor="#666666" style="border-style: solid; border-width: 1px; padding-right: 25px; padding-top: 25px; padding-bottom: 20px;" text-align:"justify" bgcolor="#D7D7D7">
                                            <img border="0" src="images/cart.jpg" width="120" height="90" align="left" hspace="25"><b>Your order has been successfully received and processed.</b>&nbsp; We will begin creating your one-of-a-kind personalized children's book as soon as possible.&nbsp Please understand that our books will require approximately 3 weeks to create and another 2 to 6 business days for shipping.&nbsp; Below is a review of the information that has been submitted regarding the book(s).&nbsp; If you see an error, please notify us immediately by completing the <a class="type3" target="_blank" href="http://storized.com/contact.htm" rel="nofollow noopener">contact form</a> and describing the error.&nbsp; Please include your order number.<br><br><blockquote>
     
    <?php
    if ($childsFirst)
    {                                
        echo "<b>Here is the information we received for the Lose Me NOT! book:</b><br><br>";
     
        echo "<blockquote>";
         echo "Child's Name - $childsFirst<br>";
          echo "Child's Gender - $childsGender<br>";
          echo "Child's Guardian - $childsGuardian81<br>";     
          echo "Child's Ethnicity - $childsEthnicity<br>";
          echo "Guardian's Ethnicity - $guardiansEthnicity68<br>";
          echo "Child's Address - $childsAddress44<br>";
          echo "Guardian's Phone No. - ($guardiansPhoneArea) $guardiansPhoneNo<br>";           
          echo "Dedication - $dedication<br>";
          echo "Final Page Saying - $finalPage<br>";
          echo "Affirmations - $affirmation<br>";     
          echo "Child's Picture - $childsPicture13<br>";
          echo "Your Picture - $yourPicture<br><br><br>";
        echo "</blockquote>";
    }  
    else
        {
        echo " ";
        }
        
    if ($childsFirst17)
    {  
         echo "<b>Here is the information we received for the Take Me NOT! book:</b><br><br>";
        
        echo "<blockquote>";
          echo "Child's Name - $childsFirst17<br>";
          echo "Child's Password - $childsPassword<br>";
          echo "Child's Gender - $childsGender19<br>";
          echo "Child's Guardian - $childsGuardian20<br>";     
          echo "Child's Ethnicity - $childsEthnicity65<br>";
          echo "Guardian's Ethnicity - $guardiansEthnicity67<br>";
          echo "Favorite Activity - $childsFavorite<br>";
          echo "Trusted Relative - $trustedRelative<br>";
          echo "Child's Friend - $childsFriend<br>";
          echo "Dedication - $dedication75<br>";
          echo "Final Page Saying - $finalPage51<br>";
          echo "Affirmations - $affirmation71<br>";     
          echo "Child's Picture - $childsPicture24<br>";
          echo "Your Picture - $yourPicture25<br><br><br>";
        echo "</blockquote>";
    }
    else
        {
        echo " ";
        }
        
    if ($childsFirst62)
        {   
         echo "<b>Here is the information we received for the Bully Me NOT! book:</b><br><br>";
        
        echo "<blockquote>";
           echo "Child's Name - $childsFirst62<br>";
          echo "Child's Gender - $childsGender61<br>";
          echo "Child's Guardian - $childsGuardian60<br>";     
          echo "Child's Ethnicity - $childsEthnicity64<br>";
          echo "Guardian's Ethnicity - $guardiansEthnicity<br>";
          echo "Child's Friend - $childsFriend59<br>";
          echo "Dedication - $dedication76<br>";
          echo "Final Page Saying - $finalPage52<br>";
          echo "Affirmations - $affirmation72<br>";     
          echo "Child's Picture - $childsPicture55<br>";
          echo "Your Picture - $yourPicture54";
        echo "</blockquote><br>";
    }    
    else
        {
        echo " "; 
        }
        
    if ($orderNumber)
        {
         echo "<br><br>";
          echo "An invoice detailing all the above information has been sent to $emailAddress<br>";
          echo "<br><br>";
          echo "Your order number is $orderNumber<br>";
          echo "<br><br>";
          echo "Customer Service<br>";
          echo "Storyized.com<br>";
    }
    else
        {
        echo " "; 
        }     
    ?>
                                           
                                            </blockquote>
                                            </td>
                                        </tr>
                                    </table>
                                </div><br>                                         
                            </td>
                        </tr>
                    </table>
                    <table width="960" cellspacing="0" cellpadding="0" background="images/brushed3.jpg">
                        <tr>
                            <td valign="top" width="85" bgcolor="#DBDEFF" background="images/spine1.jpg">
                            <img border="0" src="images/spine2.jpg" width="85" height="48"></td>
                            <td valign="bottom" width="875">&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td valign="top">
            <div align="center">
                <br>
                <table border="0" width="1000" height="91">
                    <tr>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/books.htm" rel="nofollow noopener">Our Books &nbsp;&nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/tour.htm" rel="nofollow noopener">Take Tour &nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/stats.htm" rel="nofollow noopener">Scary Stats &nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/order.htm" rel="nofollow noopener">Order Now &nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/e-card.htm" rel="nofollow noopener">e-Gift Card &nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/faq.htm" rel="nofollow noopener">F.A.Q. &nbsp;  </a></li></ul></td>
                        <td align="center" width="14%"><ul id="nav"><li><a target="_blank" href="http://storyized.com/contact.htm" rel="nofollow noopener">Contact &nbsp;&nbsp;  </a></li></ul></td>
                    </tr>
                </table>
            </div>
            </td>
        </tr>    
    </table>
    </div>    

    </body>
    </html>

  • Profile Image
    JotForm Support

    Answered by jonathan on February 02, 2013 at 03:28 AM

    Hi,

    Please consider our apology for any inconvinience this had caused you. To inform you, we did have system wide issue that started a couple days back. If you had the chance to visit the support forum recently you would have seen this announcement.

    I am not sure if you are using AT&T -- which can magnify this issue most specially for those in the US since they'd be using the .us domain (like in your form).

    Our technicians are really working hard to fully restore full service. Cloudflare is an integral part of the system because it is related to security layer. From what I have learn, our technicians had to resolve to re-routing to compensate for the down service layer provider(Cloudflare) for .us domain. Since re-routing occur, it will affect some users (like you) since it will take some time replicating data/information from servers/locations.

    JotForm just reached a 1 million users milestone, so, I am not really in the position to admit anything for your regarding its stability and reliability. But I do hope for your understanding for this temporary delays and changes that have to happen. I am sure everything is on the way to full service recovery already.

    As for the php issue, I am not much of a php programmer, but I will try -- if ever I cannot resolve it for you, I will seek assistance from colleagues who are more on PHP.

    Now, my hunch for why it would not include in your script is because -- if you noticed Mom & Dad  in Childs Guardin radio option (refering to this form https://secure.jotform.us/form/23616137752151) -- there is an & (ampersand) character. I believe this is disrupting your script because an "&" character is being treated in your source code as part of a command (it is not just string or text)

     

    Please try replacing that option -- use Mon and Dad full "and" word instead. Then test your form and script again.

    Please keep us posted of your updates.

    Thanks.