|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 10
|
|
| Author |
|
|
Advanced Member Joined: Sep 21, 2005 Post Count: 221 Status: Offline |
Hi, There are few problems I am trying to sort out but got stuck so hope you can help? See my webpage http://www.pcglow.co.uk/collection-form.php Problem 1: Input fields too close to blue border after collection address downwards except your details which is ok. I have tried padding and margin but no good. Problem 2:At the bottom of the form "I have read packaging guide and agree with Terms and Conditions" how do you make it into 1 or 2 lines rather than 6 lines? Problem 3:Typing text in any fields too black, how do you change to lighter grey text? Problem 4:When click submit without filling the form, it came up Notice: Undefined variable: symptoms in \\nas39ent\domains\p\pcglow.co.uk\user\htdocs\collection-form.php on line 169 but I already have define $symtoms = $_POST['symtoms']; ? Many thanks |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
I don't have the chance to go over this in detail at the moment, but problem #4 does with a misspelling of your variable. symptoms VS symtoms (missing "p") ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Advanced Member Joined: Sep 21, 2005 Post Count: 221 Status: Offline |
Thanks falkencreative for spotting my misspelling of variable. Also I have sort out problem 1 as well. Problem 2:At the bottom of the form "I have read packaging guide and agree with Terms and Conditions" how do you make it into 1 or 2 lines rather than 6 lines? Problem 3:Typing text in any fields too black, how do you change to lighter grey text? Thanks |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
Problem 2:At the bottom of the form "I have read packaging guide and agree with Terms and Conditions" how do you make it into 1 or 2 lines rather than 6 lines? At the moment, the width of all of your labels (including this line) are set in your css (line 220 or so). Give this particular label a css class, and assign it a larger width. Problem 3:Typing text in any fields too black, how do you change to lighter grey text? Give each of the text fields a css class, and then change the text color via css. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Advanced Member Joined: Sep 21, 2005 Post Count: 221 Status: Offline |
I am not quite clear, the width of all labels which is this label { width: 165px; text-align: right; display: block; float: left; font-size: 14px; margin-top: 0px; margin-right: 5px; margin-bottom: 0px; padding-top: 4px; padding-right: 0px; padding-bottom: 0px; } Give this particular label a css class, you mean like this label.width {width:150px;} Is that right ? As for text fields does this apply same thing? input.text{ color:#defded;} Thanks |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
Yes, that is correct. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Advanced Member Joined: Sep 21, 2005 Post Count: 221 Status: Offline |
Thanks flakencreative, got all sorted. One more to ask, how do you put text such as http:// inside input field of website so user can fill the rest after http:// see http://www.pcglow.co.uk/contact.php Thanks |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
You can use "value", which sets the default value for the text area: <input type="text" name="namehere" value="http://" /> ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Advanced Member Joined: Sep 21, 2005 Post Count: 221 Status: Offline |
Problem is I already use php code in value like this... <label>Post Code<span class="req">*</span> </label <input type="text" class="text" name="postcode" style="<?php echo $style['postcode'];?>" value="<?php if (isset($_POST['postcode'])) { echo $_POST['postcode']; } ?>" /> shall I add http:// to it and where about in value ? Thanks |
||
|
|
Advanced Member UK Joined: Dec 29, 2004 Post Count: 1662 Status: Offline |
Well, that's the postcode part, they don't usually start with http:// ![]() Anyway, since I can't see the PHP code for the website field, I'll assume you are doing something similar, i.e. displaying what's already been entered. Add the bit in red: value="<?php if (isset($_POST['website'])) {echo $_POST['websilte'];} else {echo 'http://';} ?>" ---------------------------------------- Pavonis Mons | Listen of the week: "Residue of Desire" by Acumen ---------------------------------------- [Edit 1 times, last edit by tpattison at Nov 26, 2008 10:52:05 AM] |
||
|
|
|
|
|
Current timezone is GMT May 23, 2013 8:37:18 AM |