Imokon Posted July 5, 2009 Share Posted July 5, 2009 Hey there, I have a complex "detailed sizing form" I am working on for a client, that requires a lot of customization with a few kinks I am having trouble with. I am trying to teach myself php but I think this is beyond me for the time constraints I am in. I hope I can get some advice on what I need to do. The form comes in two versions, one for men, one for women, with the VALUES mailed to my client and a "results page" that is viewable and printable by the visitor. So far I have the men's version somewhat up and going at http://projects.imokon.com/2in10/male_form/form.men.php . Problems I am currently having: #1 I need the resulting values that are sent in the email to be displayed in the "results page". I used the Web Form Factory to generate the php and I am kind of lost on exactly what part of the code I need to paste. I am experimenting right now with my limited knowledge but if you can advise that would be awesome. <h1>Thank you for your submission!</h1> <p>The measurements you entered were:</p> <ul> <li></li> <li></li> <li></li> <li></li> <li>Hip Size:<?php echo (isset($men->hip)? $men->hip: '')?></li> </ul> #2 This is the most important issue - I need to have a list of garments in the results page that is static with the exception of the recommended size. Now this is easy as the only value really factoring into the equation is the chest/coat size, the rest is just FYI sent to my client. <p>Based upon the above we recommend...</p> <p>abdomen men shirt (if chest = 28in - 31in then) in size 2XS</p> <p>Garment2</p> <p>Garment3</p> Essentially I have perhaps 9-11 different ranges that the chest size could be and hence yield a size tag for that garment. Each garment has different ranges that yield to different sizes. I was thinking I might have to write a function with restrictions but not exactly sure on how to specify multiple ranges for each garment. For the Women's version of the form it gets worse. The visitor will be asked to supply values for 1. whether they have hard tissue or soft tissue 2. how their fat is distributed on their body spanning roughly 22 diagrams. 3. if they are older than 60 or younger than 60 Each one of those diagrams will have again a list of garments that specify what size they should order based on EITHER thorax, hips OR waist On some figure types depending if they were over or under 60 yrs old they might be shown a different list of garments On some figure types depending on whether they have hard tissue or soft tissue they will have different ranges that yield to their size of waist, thorax, or hips. Here is an example of what one of the 22 choices might yield: Garment R21 = Thorax Garment R 22 = Thorax Garments R27, R28,R29 If waist = 22, 23, 24 then size = 28 If waist = 25, 26, 27 then size = 30 If waist = 28, 29, 30 then size = 32 If waist = 31, 32, 33 then size = 34 If waist = 34, 35, 36 then size = 36 If waist = 37, 38, 39 then size = 38 If waist = 40, 41, 42 then size = 40 If waist = 43, 44, 45 then size = 42 Garment 10D = R25, R40 Size 10D = If hips = 34,35,36 then size = 2XS If hips = 37,38,39 then size = XS If hips = 40, 41, 42, 43 then size = S If hips = 44, 45, 46 then size = M If hips = 47, 48, 49 then size = L If hips = 50, 51, 52 then size = XL If hips = 53, 54, 55 then size = 2XL If hips = 56, 57, 58 then size = 3XL If hips = 59, 60, 61 then size = 4XL If hips = 62, 63, 64 then size = 5XL Garment R48= Thorax - 2 If tissue = soft then Garment 10F = R35 Size 10F = If thorax = 26 then size = 2XS If thorax = 28 then size = XS If thorax = 30 then size = S If thorax = 32 then size = M If thorax = 34 then size = L If thorax = 36 then size = XL If thorax = 38 then size = 2XL If thorax = 40 then size = 3XL If thorax = 42 then size = 4XL If thorax = 44 then size = 5XL If tissue = hard then Garment 10G = R35 Size 10G = If thorax = 26 then size = XS If thorax = 28 then size = S If thorax = 30 then size = M If thorax = 32 then size = L If thorax = 34 then size = XL If thorax = 36 then size = 2XL If thorax = 38 then size = 3XL If thorax = 40 then size = 4XL If thorax = 42 then size = 5XL If thorax = 44 then size = 6XL I hope this isn't horribly confusing. I wish I would have known how complex this was but it came through a loophole in the contract. I can't afford to pay a developer full time for this but I will gladly donate something to this site what I can when I am paid the remainder for this project if I can get this thing resolved. If you guys need any more info please don't hesitate to ask away or chew me up. I will be uploading the female version of the form shortly and adding a link here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.