Forums

drop down menus make site template change after submission

rustyDusty 21 Oct, 2008
I just made a form using 3.0. Everything was fine until I added a few drop down menus to the form html.
The forms work and the data is saved but when I click the submit button and the form goes to the "submit code text" like normal I find that my site template has defaulted to rhuk_milkway.
This is not my site's template. I am using something called transparent bliss.
Can anyone tell me what I can do to make sure that drop down menus do not inadvertently change my sites template upon form submission?

When I take the drop down menu code out of the form then my site's template remains constant after form submission.

Here is the code I made in Dreamweaver.

 <table width="549" border="0">
    <tr>
      <td width="215"><strong>Choose package below:</strong></td>
      <td width="318"><strong>Choose template below</strong></td>
    </tr>
    <tr>
      <td><select name="package" id="package">
        <option>Package List</option>
        <option value="copper">Copper</option>
        <option value="bronze">Bronze</option>
        <option value="silver">Silver</option>
        <option value="gold">Gold</option>
        <option value="platinum">Platinum</option>
      </select></td>
      <td><select name="template" id="template">
        <option>Template Number</option>
        <option value="#1">Template# 1</option>
        <option value="#2">Template# 2</option>
        <option value="#3">Template# 3</option>
        <option value="#4">Template# 4</option>
        <option value="#5">Template# 5</option>
        <option value="#6">Template# 6</option>
        <option value="#7">Template# 7</option>
        <option value="#8">Template# 8</option>
        <option value="#9">Template# 9</option>
        <option value="#10">Template# 10</option>
        <option value="#11">Template# 11</option>
        <option value="#12">Template# 12</option>
        <option value="#13">Template# 13</option>
        <option value="#14">Template# 14</option>
        <option value="#15">Template# 15</option>
        <option value="#16">Template# 16</option>
        <option value="#17">Template# 17</option>
        <option value="#18">Template# 18</option>
        <option value="#19">Template# 19</option>
        <option value="#20">Template# 20</option>
        <option value="#21">Template# 21</option>
        <option value="#22">Template# 22</option>
        <option value="#23">Template# 23</option>
        <option value="#24">Template# 24</option>
        <option value="#25">Template# 25</option>
        <option value="#26">Template# 26</option>
        <option value="#27">Template# 27</option>
                  </select></td>
    </tr>
  </table>
  <br />
  <p><strong>Photo Gallery</strong></p>
  <table width="368" border="0">
    <tr>
      <td><strong> Choose Photgallery package</strong></td>
    </tr>
    <tr>
      <td><select name="photo_gallery" id="photo_gallery">
          <option selected="selected">Package List</option>
          <option value="3 page">3 page</option>
          <option value="6 page">6 page</option>
          <option value="9 page">9 page</option>
          <option value="12 page">12 page</option>
          <option value="flash">flash animation</option>
      </select></td>
    </tr>
  </table>
  <br />
<table width="533" border="0">
    <tr>
      <td width="1"> </td>
      <td width="376"><div align="right"><strong>ANY ADDITIONAL IMAGES/FILES? <br />
        UPLOAD HERE</strong></div></td>
      <td width="142"><div align="right">
          <input name="Upload" type="file" id="Upload" size="10" />
      </div></td>
    </tr>
    <tr>
      <td colspan="3"><div align="right">
          <input type="submit" name="Send" id="Send" value="Submit" />
      </div></td>
    </tr>
  </table>
Max_admin 21 Oct, 2008
try to change the dropdown called "template" to "template1" or anything else other than template because I think "template" is a joomla variable!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rustyDusty 22 Oct, 2008
Yes I realised that soon afterwards.

I had this same problem using the word "logo" which made the form spread out all over the page.

Thanks for the tip. I didn't know there were certain trigger words to be careful of.
This topic is locked and no more replies can be posted.