Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 10
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1232 times and has 9 replies Next Thread
Male sparrow
Advanced Member




Joined: Sep 21, 2005
Post Count: 221
Status: Offline
Reply to this Post  Reply with Quote 
PHP form problem

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

[Nov 24, 2008 4:03:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 24, 2008 4:09:10 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male sparrow
Advanced Member




Joined: Sep 21, 2005
Post Count: 221
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 24, 2008 4:32:57 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 24, 2008 4:43:24 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male sparrow
Advanced Member




Joined: Sep 21, 2005
Post Count: 221
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 24, 2008 5:24:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

Yes, that is correct.
----------------------------------------
Benjamin Falk | student : designer : developer
Twitter: falkencreative
[Nov 24, 2008 5:54:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male sparrow
Advanced Member




Joined: Sep 21, 2005
Post Count: 221
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 25, 2008 4:57:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 25, 2008 9:58:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male sparrow
Advanced Member




Joined: Sep 21, 2005
Post Count: 221
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

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
[Nov 26, 2008 2:09:01 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male tpattison
Advanced Member
Member's Avatar

UK
Joined: Dec 29, 2004
Post Count: 1662
Status: Offline
Reply to this Post  Reply with Quote 
Re: PHP form problem

Well, that's the postcode part, they don't usually start with http:// biggrin

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]
[Nov 26, 2008 10:50:20 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread