jrapin Posted December 8, 2006 Share Posted December 8, 2006 Have a minor technical question about a travel form created with PHP.All the fields are specified but some of my text field are "yellow" while other have remained "white".I prefer the "yellow" color for the form and can't seem to discover or understand why the white fields are not changing to yellow. (In particular, the "fax" is really identical to the "city" yet displays diffrently).Please Check out my attached document and notify me as to the real reason why all the fields in my PHP form are not "yellow" in color.Sincerely,Jrapin[attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/ Share on other sites More sharing options...
ted_chou12 Posted December 8, 2006 Share Posted December 8, 2006 if you have problem in the color of the text fields, you can color the text like this:[code]<input name="recipients" type="text" id="recipients" bgcolor="yellow">[/code]i think that workshope it helps you Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137496 Share on other sites More sharing options...
jrapin Posted December 8, 2006 Author Share Posted December 8, 2006 Thank you, but could you please be a bit more specific as to the exact code?This is what I have:<?php error_flag($error, "fax_number"); ?></div><div align="center" class="textGreenBold">*Fax Number:</div><div align="right"><input type="text" name="fax" value="<?php print $_POST['fax_number'] ?>" /> Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137507 Share on other sites More sharing options...
ted_chou12 Posted December 8, 2006 Share Posted December 8, 2006 [quote author=jrapin link=topic=117848.msg481131#msg481131 date=1165589831]Thank you, but could you please be a bit more specific as to the exact code?This is what I have:<?php error_flag($error, "fax_number"); ?></div><div align="center" class="textGreenBold">*Fax Number:</div><div align="right"><input type="text" name="fax" value="<?php print $_POST['fax_number'] ?>" />[/quote]If you want to use the error flag function, i cant help you, sorry, i only know basics of php. :P Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137510 Share on other sites More sharing options...
jrapin Posted December 8, 2006 Author Share Posted December 8, 2006 Thank you sir, I 'm still wondering why I should use the <bgcolor="yellow"> function.Beacuse this code is foriegn to the document (It has not been used anywhere else).I'm working on the phpform in Dreamweaver and I thought perhaps there was some latent (invisable)code somewhere. However, I really want to make the fields a uniform color (white or yellow will work),but I prefer yellow. How do I change the way these fields are displayed on this form? Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137512 Share on other sites More sharing options...
ted_chou12 Posted December 8, 2006 Share Posted December 8, 2006 okay, actually, "yellow" is just an example, some word colors does actually work with html code, but i dont think yellow works, you have to use the hex color codes, hold on, let me find them. :D Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137518 Share on other sites More sharing options...
ted_chou12 Posted December 8, 2006 Share Posted December 8, 2006 here, try this page:[url=http://www.maketemplate.com/form/]http://www.maketemplate.com/form/[/url]you will be able to design your own form style easily ;) Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137521 Share on other sites More sharing options...
jrapin Posted December 8, 2006 Author Share Posted December 8, 2006 Can an advanced PHP person tell me why my attached document is displaying a variety of colors in the fields?I would like to make everything "one color"... . Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137523 Share on other sites More sharing options...
jrapin Posted December 8, 2006 Author Share Posted December 8, 2006 Can anyone help me with this simple request?I'm having a hard time with this.... Can't find the problem. Jeez Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137562 Share on other sites More sharing options...
kenrbnsn Posted December 8, 2006 Share Posted December 8, 2006 Please wait at least 2 or 3 hours (preferably 4) before bumping.Ken Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137565 Share on other sites More sharing options...
craygo Posted December 8, 2006 Share Posted December 8, 2006 I downloaded your page and created a css file and everything works fine for me. Might be a problem with your css file.Ray Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137572 Share on other sites More sharing options...
jrapin Posted December 8, 2006 Author Share Posted December 8, 2006 Still can't discover why some of my form fields are yellow whilw others (such as fax) are premature and white in color. Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-137607 Share on other sites More sharing options...
jrapin Posted December 11, 2006 Author Share Posted December 11, 2006 Please help.. Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139251 Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 Do you have a link to the web page??can you post your code for the css and php page??ray Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139265 Share on other sites More sharing options...
jrapin Posted December 12, 2006 Author Share Posted December 12, 2006 Ray,I have removed the link to the CSS page and the page still displays the fields in two diffrent colors. Ba hum bug!Do I have any options with this form? I kept thinking that perhaps Dreamweaver was hidding a setting or specification of some sort. Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139680 Share on other sites More sharing options...
craygo Posted December 12, 2006 Share Posted December 12, 2006 click the code part of dreamweaver, copy the entire code and paste it here between the code tagsRay Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139688 Share on other sites More sharing options...
jrapin Posted December 12, 2006 Author Share Posted December 12, 2006 Ray,Forgot to mention that if I insert the opening and closing HTML tags, the php form does'nt work.After removing the CSS linked, I noticed that I still had the same color problem (with the form fields).I have attached my version of the file in question for viewing/modifying.If you could modify the file and re-attach it, I'd be very happy.[attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139693 Share on other sites More sharing options...
craygo Posted December 12, 2006 Share Posted December 12, 2006 to be honest the page shows up perfectly fine for me in IE. In firefox things are a little different. It seems to be adding in some code. Can you also give me your css file??ThanksRay Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139695 Share on other sites More sharing options...
jrapin Posted December 12, 2006 Author Share Posted December 12, 2006 Ray,I am assuming you are previewing the files through localhost in Microsoft Internet Explorer.I am also.I haveincluded the css page and the version of the php file including the style sheet.Please check and see if you can add new fields into theform and have them display as "yellow" text boxes please.[attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139700 Share on other sites More sharing options...
craygo Posted December 12, 2006 Share Posted December 12, 2006 What do you mean yellow text boxes. you want the input boxes to have a yellow background?? Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139709 Share on other sites More sharing options...
jrapin Posted December 12, 2006 Author Share Posted December 12, 2006 Craygo69,Yes - the input fields (text boxes) are suppsoed to be yelow in color to contrast wit the background page color (white).This has been the problem with the form. I really need to achieve consistency. Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139712 Share on other sites More sharing options...
craygo Posted December 12, 2006 Share Posted December 12, 2006 ok here are the two files i went through both and the page works fine for me in both IE and Firefox.Let me know how you make outRay[attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139740 Share on other sites More sharing options...
ted_chou12 Posted December 12, 2006 Share Posted December 12, 2006 maybe you can try use text editors to delete the part that are not customizable, cant you? Link to comment https://forums.phpfreaks.com/topic/29925-php-forms-help/#findComment-139746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.