zero-perfoliate
zero-perfoliate

Author Topic: I know that I am just missing something simple..  (Read 1163 times)

Offline frosty

  • PHP Workers
  • **
  • Posts: 7
  • Karma: +0/-0
I know that I am just missing something simple..
« on: August 05, 2008, 07:21:24 AM »
Hello,
I have been banging my head on this for a few days now and just can not seam to figure out what I am doing wrong or missing...

Description of Project:
I am working on a system where users can register a new account and select hardware that I will send to them for use in their locations. The site consists of apx. 15 form pages some 600 possible form fields. (huge I know). For the first pass I have been storing everything in the session, then pulling and building an xml string to insert the values into my central db. I have concluded that this is not secure enough for my liking. There for I have made the move to use mySql to handle the temp storage of the form values etc.

Issue:
The section where they can select hardware is my problem. The user can select an infinite number of hardware types and option combinations. However, each hardware set can only be done one at a time...

The flow is something like this....

Drop Down - Hardware Type
Values - Kiosk, Wall Unit, Printer, Bar Code Reader (Selected Kiosk)
**Selection loads another dropdown**

Drop Down - Kiosk Typo
Values - Tower, Counter Top, Portable (Selected Tower)

At this point I call mySql and get the rest of the form based on the selection of "Tower"

The form loads fine from the db with this exception. (in all palces where I am using php open close tags)

Sample...
Code: [Select]
<tr>
<td class="style6"><div align="right" >Communications</div></td>
<td class="style6">&nbsp;</td>
<td class="style6"><select name="ttDevCommFmt" style='font:8pt Verdanda, Arial, Helvetica, sans-serif; border:1 solid #FF9F9F;' onFocus="this.style.backgroundColor='#ffffCC'" onBlur="this.style.backgroundColor='#ffffff'">
<?php print printDeviceCommFormat($_SESSION['ttDevCommFmtHyp']); ?>
</select></td>
</tr>

The
Code: [Select]
<?php print printDeviceCommFormat($_SESSION['ttDevCommFmtHyp']); ?> is not loading the array where the values are stored. If is as if the "<?" "?>" are not being handled correctly, and there is my issue.

I will be more than happy to send anyone the full page code and the code being stored in the db but they are way too long for me to include in this post...

Thanks
Frosty



icestormz

  • Guest
Re: I know that I am just missing something simple..
« Reply #1 on: August 05, 2008, 07:57:54 AM »
Hi frosty thanks for posting is it possible for you to e-mail me the code so i can have a look at it admin@icestormz.com

Offline frosty

  • PHP Workers
  • **
  • Posts: 7
  • Karma: +0/-0
Re: I know that I am just missing something simple..
« Reply #2 on: August 06, 2008, 10:34:34 AM »
sent

Offline frosty

  • PHP Workers
  • **
  • Posts: 7
  • Karma: +0/-0
Re: I know that I am just missing something simple..
« Reply #3 on: September 09, 2008, 08:35:39 AM »
Hey icestormz,

I was able to get it worked out...

Thanks!

icestormz

  • Guest
Re: I know that I am just missing something simple..
« Reply #4 on: September 10, 2008, 09:01:02 PM »
Nice what was the problem? can you please share so that if someone has this problem in the future they will know what to check for

Offline frosty

  • PHP Workers
  • **
  • Posts: 7
  • Karma: +0/-0
Re: I know that I am just missing something simple..
« Reply #5 on: November 03, 2008, 12:21:56 PM »
Hey there Ice,

Sorry have been offline for a while...

The issue was that I was trying to load the dropdowns from a pre built array that I had stored on a include_once() file.

I ended up making a db with tables for my dropdowns, once that was done they worked just fine.

 

zero-perfoliate