This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 701. |
Solve : Final Year Project? |
|
Answer» Hey guys. I'm about to do my FINAL year project this coming TRIMESTER. I was wondering if any of you guys could suggest what type of project I should do consisting Web Developement using HTML5? I'm kinda new to this, So I need to acquire something which is - What's the latest development in this field (HTML5 & Web Developement) out there that I could carry on and APPLY it on with my project? Any suggestions would be much appreciated. Thanks Taking a retro game and EMULATING it in HTML5 is always a good one. Or how about creating a frontend for something like VNC that can store and categorise connections and then run the entire VNC session in the browser?web application that deals with video play list and drag and drop functionality would be a good project I suggest. |
|
| 702. |
Solve : chnaging tags colours with specific search criteria? |
|
Answer» HI i am making a chrome extension and im done up to the most important part, that is to change the background and text colour of specific TAGS that have a certain phrase within them at the moment the tags are made like this (unchangeable): "name here" [/url] "phrase is here" [/url] "other stuff" [/url] what i need the script to do (javascript) is to search the WHOLE document for specific phrases / guild tags and if it finds one within the phrase area it changes its text and background colour swell as the other two table cells in that row, i have attempted this several times and have ultimately failed, i can change one item on the table and that is about it so far. any help on how i could do this would be great (there will be a couple of ARRAYS for the phrases one for allies, enemy's and do not hit.)ok i have made this: Code: [Select]var num=document.getElementsByTagName("a") var amo=num.length; for (i=0; i<amo; i++) { if (num[i].parentNode.parentNode.parentNode.parentNode.className=="layout listing btnlisting sorttable") { if (num[i].innerHTML.search('[Ebil]')>0) { alert(num[i].innerHTML); num[i].parentNode.style.background="#660000"; } } } the only problem is that it does not always work and it highlights some cells without '[Ebil]' being within the HTML of the a tag |
|
| 703. |
Solve : increasing efficiency of for loops? |
|
Answer» Code: [Select] for (i=0; i<amo; i++){ |
|
| 704. |
Solve : Web desing? |
|
Answer» Do you know where i can find a "READY" SITE code like this |
|
| 705. |
Solve : Contact Form(PHP)? |
|
Answer» I need help on "CONTACT Form", when I CLICK SUBMIT, I am prompted to download the form, INSTEAD of sending it, what could be causing this error? * Are you human? 3 + 1 = The PHP code is: if(!$_POST) exit; // Email address verification, do not edit. function isEmail($email) { return(preg_match("/^[-_.[:alnum:]][email protected]((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.) +(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo |br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm |do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs |gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp| kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu |museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk |pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su |sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi |vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3} ([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i",$email)); } if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n"); $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $comments = $_POST['comments']; $verify = $_POST['verify']; if(trim($name) == '') { echo ' Please enter your name.'; exit(); } else if(trim($email) == '') { echo ' Please enter a valid email address.'; exit(); } else if(!isEmail($email)) { echo ' You have enter an INVALID e-mail address, please try again.'; exit(); } if(trim($comments) == '') { echo ' Please enter your message.'; exit(); } else if(!isset($verify) || trim($verify) == '') { echo ' Please enter the verification number.'; exit(); } else if(trim($verify) != '4') { echo ' The verification number you entered is incorrect. Please enter it again'; exit(); } if(get_magic_quotes_gpc()) { $comments = stripslashes($comments); } $address = "[email protected]"; $e_subject = 'You\'ve been contacted by ' . $name . '.'; $e_body = "You have been contacted by $name with regards to $subject, their additional message is as follows." . PHP_EOL . PHP_EOL; $e_content = "\"$comments\"" . PHP_EOL . PHP_EOL; $e_reply = "You can contact $name via email, or $email"; $msg = wordwrap( $e_body . $e_content . $e_reply, 70 ); $headers = "From: $email" . PHP_EOL; $headers .= "Reply-To: $email" . PHP_EOL; $headers .= "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL; $headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL; if(mail($address, $e_subject, $msg, $headers)) { // Email has sent successfully, echo a success page. echo " "; echo " "; echo " Email Sent Successfully."; echo " Thank you $name, your message has been submitted to us. ";echo ""; echo ""; echo ""; } else { echo 'ERROR!'; } |
|
| 706. |
Solve : Help With Undefined Variable? |
|
Answer» Having trouble finding the right solution for errors in PHP. The error reads..... |
|
| 707. |
Solve : Contact Form Php? |
|
Answer» I need help on "contact FORM", when I click submit, I am prompted to download the form, INSTEAD of sending it, what could be causing this error? * Are you human? 3 + 1 = The PHP code is: if(!$_POST) exit; // Email address VERIFICATION, do not edit. function isEmail($email) { return(preg_match("/^[-_.[:alnum:]][email protected]((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.) +(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo |br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm |do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs |gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp| kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu |museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk |pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su |sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi |vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3} ([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i",$email)); } if (!defined("PHP_EOL")) define("PHP_EOL", "\r\n"); $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $comments = $_POST['comments']; $verify = $_POST['verify']; if(trim($name) == '') { echo ' Please enter your name.'; exit(); } else if(trim($email) == '') { echo ' Please enter a valid email address.'; exit(); } else if(!isEmail($email)) { echo ' You have enter an invalid e-mail address, please try again.'; exit(); } if(trim($comments) == '') { echo ' Please enter your message.'; exit(); } else if(!isset($verify) || trim($verify) == '') { echo ' Please enter the verification number.'; exit(); } else if(trim($verify) != '4') { echo ' The verification number you entered is incorrect. Please enter it again'; exit(); } if(get_magic_quotes_gpc()) { $comments = stripslashes($comments); } $address = "[email protected]"; $e_subject = 'You\'ve been contacted by ' . $name . '.'; $e_body = "You have been contacted by $name with regards to $subject, their additional message is as follows." . PHP_EOL . PHP_EOL; $e_content = "\"$comments\"" . PHP_EOL . PHP_EOL; $e_reply = "You can contact $name via email, or $email"; $msg = wordwrap( $e_body . $e_content . $e_reply, 70 ); $headers = "From: $email" . PHP_EOL; $headers .= "Reply-To: $email" . PHP_EOL; $headers .= "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL; $headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL; if(mail($address, $e_subject, $msg, $headers)) { // Email has sent successfully, echo a success page. echo " "; echo " "; echo " Email Sent Successfully."; echo " Thank you $name, your message has been submitted to us. ";echo ""; echo ""; echo ""; } else { echo 'ERROR!'; } Reply Quote NotiI have a few questions. What version of html and php are you using? Is the php code some thing you copyed and pasted from an example? What browser/ web development program are you using? Is there a difference between this topic and the one you posted DAYS prior to this one? |
|
| 708. |
Solve : Need a hand embeding video files into my website? |
|
Answer» I am having quite a difficult time with this. All of the videos work correctly when I view my website in firefox but in CHROME nothing appears and in Internet EXPLORER only the play button appears with no video above it. |
|
| 709. |
Solve : website programming and website designing.? |
|
Answer» I don't know am i post in right PLACE? If i commit any mistake,then i APOLOGIZE you. i want to know one thing that what is the difference between website programming and website designing? |
|
| 710. |
Solve : Need A Hand on phpbb forum? |
|
Answer» Hello Everyone, If a forum or user’s permissions are set to moderator queue via the Administration Control Panel, all posts made in that forum or by this user will need to be approved by an ADMINISTRATOR or moderator before they are displayed to other users. |
|
| 711. |
Solve : circular status bar? |
|
Answer» HELLO i dont know if this is possible or not but i know it can be easily done using a linear bar display to show a percentage. is it possible to do it over a circular bar without having multiple images? this is what it looks like so i would like the two orange bars to represent a percentage by actively moving around the dial (preferably JAVASCRIPT if possible as it is going onto a desktop GADGET): similar to how this works: http://blakek.us/labs/jquery/css3-pie-graph-timer/ but i am unsure how this is done if anyone can tell me how to do this then that would probably solve my problemInteresting...Are you two related? I logged on and found this as soon as I got a password reset request.oh wow, IVE been using this logon for years XD i thought i previously had and account on here and forgot my password, hence the password reset. well this is fun ^.^anyway how would i do this You're looking at Flash or HTML5 really for this. Javascript/CSS2 on their own don't give you a good drawing canvas. HTML5 does though. |
|
| 712. |
Solve : float? |
|
Answer» i'm using float POSITION on a block in it's style.. but it's positioned upon the block above it.. although I used margining LEFT and right in both blocks.. |
|
| 713. |
Solve : Script won't load in Firefox? |
|
Answer» The JS code for blinking text on my site won't load for me in Firefox. Offline, it works fine in all browsers Offline it works & Online it doesn't to me points to security related to Java Script. FF15 is blocking JS from online sources yet it allows it to execute locally. I'd go into security and make sure JS is enabled for both LOCAL and www. Internet speed shouldn't MATTER as for once the HTML is loaded with the JavaScript the TEXT should blink, once loaded you could unplug from internet and it will continue to blink. Can you list your JavaScript source here so I can look it over for issues? There's a way to blink text through CSS, which would make JS unnecessary. (btw the JS worked for me in firefox 18.0a1-20120907) Code: [Select]<span style="text-decoration: blink;">blink text</span>I just opened the site again in Firefox and after waiting a long time (few minutes maybe) the script finally loaded. But I don't get why it TOOK so long. My connection is slow, but not that slow. It only takes a few seconds max for the SWF video on my site to load, and most web pages will fully load in a few seconds. DaveLembke, in I have Code: [Select] <script type="text/javascript"> function blink() { if (!document.getElementById('blink').style.color) {document.getElementById('blink').style.color="white";} if (document.getElementById('blink').style.color=="white") {document.getElementById('blink').style.color="#CC00FF";} else {document.getElementById('blink').style.color="white";} timer=setTimeout("blink()",333); } function stop() {clearTimeout(timer);} </script> In body I use and text. TechnoGeek, that's the same as the tag, correct? I used before, and it worked in Firefox but not in Chromium, which is why I switched to JS. It was also due in part to the tag not even being listed on w3schools.com making me think it is obsolete or something. I tried your version and again, it works in Firefox, but not Chromium (even offline it does not work in Chromium). I've never had issues with Chromium not loading scripts in the past, so I don't think it's an issue with my settings. Quote from: ShadowVegan on September 08, 2012, 07:35:47 PM TechnoGeek, that's the same as the <blink> tag, correct? No. It's a CSS text decoration. It's part of the HTML DTD.Regardless, they both had the same effect: Work in Firefox, not Chromium. Using HTML5 doctype if it matters.Found this: http://stackoverflow.com/questions/4894488/blinking-text-cross-browserI'll take a look, thanks. |
|
| 714. |
Solve : WordPress Site does not load, PHP Error.? |
|
Answer» Okay guys, I have a WordPress website which was working perfectly fine last night. But when I checked it today I am receiving this error: |
|
| 715. |
Solve : Drop down menu options using HTML?? |
|
Answer» Option1 Option2 Option3 using the code above, a simple drop down menu is created... but what I want is that when an option is chosen, eg Option 2, an image and table appear below the drop down menu. I am trying to create a comparison website that would have two menus side by side. http://i.imgur.com/btiAY.png Something that looks similar to that but with the image + table mentioned above. Any help? I would get DREAM weaver to do this alot easier. Since you seem new to HTML codeing it in notepad is a huge pain. The easist thing I learned to do is look at the code of some PAGES an REMOVE what you dont want. I understand what your wanting however, you linked an image. Some times there are also, templates you can follow an change to make it how you want it Quote from: jordaiin on September 20, 2012, 05:52:55 AM <select name="List" size="1"> Please ignore the enthusiastic, but misguided input from Ryuk. What you are talking about would require the use of javascript. My preference would be to use something like jQuery (a javascript framework) but if you're just starting out with HTML, that might be too much, too soon. |
|
| 716. |
Solve : Website displays differently in Chrome Than IE.? |
|
Answer» Can one of you please check the source code for this site and let me know what changes need to be made to make it display properly in internet explore, currently the headerbox is about an inch to low when VIEWED from IE 8? |
|
| 717. |
Solve : How to make over & down-state navigation buttons?? |
|
Answer» I want to make navigation buttons that change when you mouse over them and change when you click on them. I used to USE Dreamweaver CS3 from the complete CS3 package that had a tool that did this for me, but now I'm stuck with the complete CS6 package and for some reason that I cannot fathom, they took that tool out. So how do I make buttons that change states according to how they are INTERACTED with?Looks LIKE it's still there. Read this article (SEARCH for the word "rollover"): http://www.pcworld.com/article/256490/adobe_dreamweaver_cs6_review_mobile_app_development_the_html_5_way.html |
|
| 718. |
Solve : "go back" placemark? |
|
Answer» How do I set up a page to; Hitting the "BACK" BUTTON returns me to the place I LEFT on the previous page.It should do that ANYWAY...can you explain a bit more? |
|
| 719. |
Solve : Footer Menus? |
|
Answer» Hello. |
|
| 720. |
Solve : SMF BB some things I would like to learn? |
|
Answer» [url]I am not sure how others in this fourm and others are going about doing somethings and I would like to KNOW how they do it. |
|
| 721. |
Solve : Puzzled as to where this prints?? |
|
Answer» This SIMPLE page is used for a LARGE, numeral countdown so as to be visible some distance from the monitor. This prints the numeral 1. My problem is that the numeral prints at the bottom of the screen and I can't figure out why? If I use a font pt larger then 500 then the numeral starts slipping off at the bottom, so in order to have the whole thing I'm restricted to 500 pt. In other words, I have this big blank space at the top. (28in monitor set at native pixal size of 1920 wide). <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Final//EN"> <HTML> <HEADING> <TITLE>1 HTML</TITLE> <STYLE> H2{font-size : 500pt} </STYLE> </HEADING> <BODY> <script> /*Random background color- by javascriptkit.com Visit JavaScript Kit (http://javascriptkit.com) for script Credit must stay intact for use*/ //Enter LIST of bgcolors: VAR bgcolorlist=new ARRAY("#DFDFFF", "#FFFFBF", "#80FF80", "#EAEAFF", "#C9FFA8", "#F7F7F7", "#FFFFFF", "#DDDD00", "#A1543F", "#708A92", "#49CE2A", "#3B50BF", "#A50562", "#E049F4", "#9E55D3", "#EB1440", "#4BC054", "#3A6A94", "#D3DEE3", "#48435B", "#39BE6A", "#5D0630", "#40F6B2", "#765BAB", "#F1A343") document.bgColor=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)] </script> <H2>01</H2> <META HTTP-EQUIV="Refresh" Content="60;url=finished.html"> <BGSOUND SRC="buzzer.wav" LOOP="2"> </BODY> </HTML> Thanks in advance for any help. |
|
| 722. |
Solve : Problems with spammers on my forum.? |
|
Answer» Hey guys, |
|
| 723. |
Solve : How to save data from a PHP form? |
|
Answer» Hi PHP Code: You forgot one small thing there - a full STOP for the $data variable. If you don't have the full stop you will get a PHP error.Thanks for catching that, I was quite tired when typing that up, plus I was at work . Quote from: fffreak on December 30, 2008, 02:12:58 PM Thanks for catching that, I was quite tired when typing that up, plus I was at work . Alright. We all make small mistakes like that. I know, it's a old thread, but I have a question here. This form glues the result to one string like, Name1Email1The Message1Name2Email2The Message2Name3Email3The Message3Name4Email4The Message4 I normaly don't use PHP, now I need this code, but without that error. I read some PHP stuff but couldn't find a solution. Thanks for your help.I got a very fast answer on Stackoverflow. http://stackoverflow.com/questions/12908334/new-line-in-php-output-in-a-text-file Quote $data = $_POST['name'] . PHP_EOL;Quote from: DarthSeverus on October 16, 2012, 08:45:06 PM I got a very fast answer on Stackoverflow.Either that or use this: Code: [Select]$data = $_POST['name'] . "\n"; $data .= $_POST['email'] . "\n"; $data .= $_POST['message']; ...where \n means "new line". |
|
| 724. |
Solve : opening a virtual page? |
|
Answer» hello is there a way of opening a page virtualy using a php script? |
|
| 725. |
Solve : sendig an array over ajax? |
|
Answer» hello i have quite a large array of data that i would LIKE to send to my database. i currently use javascript or client SIDE and php for SERVER side. how would i send an array using an ajax request and also how would i make use of that array on php.Use JSON to bundle up your array. |
|
| 726. |
Solve : Page Title? |
|
Answer» I'm creating my own website from scratch and use the "unlimited space" on cwahi. Just speaking hypothetically, if i were to include the tag I mentioned above before the initial php code it would display the text that I insert right?The code would be there, yes, but the browser probably wouldn't interpret it properly, or you might have duplicate title tags. The title tag has a specific location (the head section) which may be in another php file somewhere (using the include() or require() directives in php) What is the output of the contact page when you view it in a browser? It should include a title somewhere. You can search your php files (good text editors or IDEs have a 'find in files' function) for a title tag or the current contact page title and see what you would have to do to CHANGE it. Because every website or CMS is configured a bit differently, you might have an administration tool to make edits in, some other file that holds information about the pages in your site, etc. etc. If you don't see a title tag in your contact page's file, you need to find where the code actually resides and change it there.This is the code from the contact.php: Code: [Select]<?php session_start(); //Email Validation function checkEmail($email) { if(eregi("^[a-zA-Z0-9_][email protected][a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email)) { return FALSE; } list($Username, $Domain) = split("",$email); if(getmxrr($Domain, $MXHost)) { return TRUE; } else { if(fsockopen($Domain, 25, $ERRNO, $errstr, 30)) { return TRUE; } else { return FALSE; } } } // get posted data into local variables $EmailTo = "fake [email protected]"; $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $Name = Trim(stripslashes($_POST['Name'])); $Subject = Trim(stripslashes($_POST['Subject'])); $Message = Trim(stripslashes($_POST['Message'])); // validation $validationOK=true; if(checkEmail($EmailFrom) == FALSE){ $error_msg[] = "Please enter in a valid email address."; } if (Trim($Name)==""){ $error_msg[] = "Please enter in a name."; } if (Trim($Subject)=="") { $error_msg[] = "Please enter in a subject."; } if (Trim($Message)==""){ $error_msg[] = "Please enter in a message."; } //triggers error message if ($error_msg) { $_SESSION['error_msg'] = $error_msg; header ('Location: index.php'); exit(); } //sends email else { $Body = "You have a new email from $Name.\n\n Reply to $EmailFrom.\n\n $Name says,\n $Message"; $success = mail($EmailTo, $Subject, $Body); } //redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=ThankYou.html\">"; } else{ print "Email could not be sent due to errors. Please email the <a href='mailto:[email protected]>Webmaster</a>."; } ?> And as far as the page title for this it shows the url: Code: [Select]http://b455hunt3r.cwahi.net/index.phpAdd a title tag to your index.php somewhere. As a side note, none of this code looks valid (contact.php and index.php certainly aren't, anyway) because it LACKS the html, head, and body tags. You may want to look into adding these.I just looked at the stuff and that code is what is suppose to verify and send to my email. This is the correct code for the form: Code: [Select]<?php session_start(); ?> <!--Start error code--> <?php if ($_SESSION['error_msg']) { foreach ($_SESSION['error_msg'] as $val) { echo "$val<br />"; } unset($_SESSION['error_msg']); } ?> <!--End Error Code--> <!--Start Form Code--> <form method="POST" action="contact.php"> <p><label for="Name">Name</label><br /> <input id="Name" name="Name" type="text" tabindex="1" size="30" /></p> <p><label for="EmailFrom">Email</label><br /> <input id="EmailFrom" name="EmailFrom" type="text" tabindex="2" size="30" /></p> <p><label for="Subject">Subject</label><br /> <input id="Subject" name="Subject" type="text" tabindex="3" size="30" /></p> <p><label for="words">Message</label><br /> <textarea name="Message" tabindex="5" rows="10" cols="24" style="width:300px;"></textarea></p> <input type="submit" name="post" id="post" value=" Send " /> <input type="reset" value=" Reset " /> </form> <!--End Form Code-->And not to bump this thread but thanks for taking a moment to reply.I figured out what to do. All I had to do was take the homepage code and past the contact form code inside the body section and I changed the title in the section where it was located. Thanks for the help though guys. |
|
| 727. |
Solve : pdf file in html? |
|
Answer» I gave a link to a pdf file in my website.....i want that when anyone click on this link from anywhere then this pdf file OPEN with fit to page....not in any other ratio...............PDF files CONTAIN within themselves a suggestion on how to view the PDF when opened. So before SAVING the PDF, you can choose the "fit to page" viewing option (if you created the PDF yourself). Then the PDF VIEWER or PDF browser plugin will probably load the file as you desire. |
|
| 728. |
Solve : Duplicating HTML Code for navigation bar? |
|
Answer» Hoping to get help from HTML writers: One of the reasons that frames were invented is to enable a navigation bar -Nooooo....please, do not use frames. If you don't want to repeat the code on every page, you'll need to use a server-side language like PHP to do it. Quote from: kpac on November 14, 2012, 11:12:51 AM Nooooo....please, do not use frames.This made my week Yeah, frames are not well supported and have been deprecated for many years. Quote If you don't want to repeat the code on every page, you'll need to use a server-side language like PHP to do it.To expand on this: In PHP, you can use code similar to include($REQUEST['page'] . '.html). If you GO to page.php?page=test, test.html will be displayed. mod_rewrite can be used to further simplify this to mysite.com/test displaying the test page. (WARNING: this EXACT code has a lot of problems with it and is not at all secure) Well we both learned from this then.. LOL ... I learned Programming for the Web back in college in 2000. Interesting to find out that Frames should be avoided now 12 years later with better methods being server side SCRIPTING languages like PHP Quote from: DaveLembke on November 14, 2012, 08:45:15 PM Well we both learned from this then.. LOL ... I learned Programming for the Web back in college in 2000. Interesting to find out that Frames should be avoided now 12 years later with better methods being server side scripting languages like PHPOh don't worry, I'm currently doing a web design module in college and they're teaching frames. Luckily I got all my knowledge from 4-5 years experience and self-research.Surprised FRAMES haven't gone the way of GOTO's in programming if they should be avoided in favor of a better method. I guess I have yet to hear the term Spaghetti HTML if using Frames. I started programming on Basic in 1984 and when I learned C++ in college the professor was like "NOOOOOOOOOOOOO .... Ok so you found out that GOTO exists in C++, We dont teach it so NEVER USE IT"...LOL. Someday Frames will go the way of GOTO's and some student will add a frame and the teacher will cry out NOOOOOOOOOO...LOL Quote from: nanwat on November 13, 2012, 06:55:22 PM Hoping to get help from HTML writers:I believe you could somewhat streamline the process by creating a template page which contains only your navigation bar. Then, when you want to add a page, open the template and save it with a different file name and then add the content for that new page. Quote from: DaveLembke on November 17, 2012, 01:31:17 AM Surprised FRAMES haven't gone the way of GOTO's in programming if they should be avoided in favor of a better method. Personally, I think that saying "never use X" is premature. Like Goto's, Frames do have their place. However, that place is nowhere on the modern web. Using Frames will both date your website in addition to simply being rather gross. For example, even when you found frames rather prevalent, you didn't find them on the sites of most tech companies, because even then, they were bad practice. How so? Well, the biggest problem, IMO, with frames, is that they don't work properly with various accessibility tools. Add to this browser dependence (in that different browsers will often interpret the Frameset's differently) pair this with how they go against the fundamental concept of the web as a large collection of individual pages, linked together with hypertext and links and with standalone URLs . The simplicity of the basic concepts are what made the early web both easy to use and incredibly popular. With the more recent focus on web applications (rather than pages) frames take an even further step back, since they are pretty difficult to automate or deal with via client-side script, and considering it's just as easy to use things like CSS floats paired with either a server side include for things like navigation or even an iframe if you really want to keep the content separate, it's no wonder Frames are frowned upon. Quote I guess I have yet to hear the term Spaghetti HTML if using Frames.Because spaghetti HTML would be impossible in concept. HTML is not a programming language, and it does not "execute", and since spaghetti code is used to refer to how things like goto's transfer control all over the place- much like how you don't really know how a single strand of cooked spaghetti weaves it's way through a pile, it's hard to see how control is transferred and where with "spaghetti code". Since there is no execution and no "control structures" in HTML (it being a mark-up, not programming, language, after all) it's impossible to have "spaghetti" HTML. Quote I started programming on Basic in 1984 and when I learned C++ in college the professor was like "NOOOOOOOOOOOOO .... Ok so you found out that GOTO exists in C++, We dont teach it so NEVER USE IT" That is an equally inept opinion, if you ask me. It really drives home the divide between how Programming languages are designed. There really are two camps: One camp thinks that programmers should be given as many tools as possible, and if they put them together badly, it's their fault. The assumption being that programmers are smart, most of the time. The other camp is the one that thinks the language should be designed so that it is more difficult to make MISTAKES. They both have their good points. However, something worth noting is that what is and is not a mistake is really up to the language designer. goto as a keyword is present in C, C++, C#, and a myriad of other languages. These are languages typically designed with the "give the programmer as many tools as possible" mindset. Other languages, like Java, have a goto keyword, but it is unused- the designers are "protecting" people from it; java is a good example of the latter, since it also lacks Operator Overloading, Extension methods, Lambda's/Delegates, iterator methods, co-routines, and countless other things that have become more and more prevalent as our more popular languages inch their way up to having the same power as Lisp. |
|
| 729. |
Solve : Why do I need SORCE CODE for my website??? |
|
Answer» Hi Everybody, |
|
| 730. |
Solve : IIS 5.1 or latest Apache for ease of configuration and learning PHP?? |
|
Answer» Underlined my questions to make them stand out among my babble...LOL |
|
| 731. |
Solve : Training of HTML programming help!? |
|
Answer» Hi, I am new in web development field and i want to learn some of the HTML programming. For that i need advise where do i begin to enhance my SKILLS. Is there any online resource where i can available to understand the knowledge of HTML programming. I desperately wanted to learn as my aim is to being a web developer. Good morning wilson.eric and welcome to CH |
|
| 732. |
Solve : Web Development & Design suggestion.? |
|
Answer» Don't know is this the right place to post this but as you ARE the geeks so I am posting. I am new in the web design and development field. I need your suggestion to build my career in this field. I need: 1. A good certificate approving me as developer. 2. A good place where I can talk with professionals (like a forum.) 3. A good place where I can get jobs. (..............as I am in India, I need to do all these things over INTERNET................) -please help.1. Microsoft Certification (MCP) as a web developer is typically a safe bet, widely RECOGNISED - though expect to pay for your exams (these are usually conducted in person at an exam centre, maybe there are some in your area). 2. I'm sure you've heard of http://www.stackoverflow.com, it's not too uncommon for people to be hired/contacted for work on their stackexchange merits alone. ALSO it helps you to keep up-to-date with the latest practices/technologies in web development. 3. Know next to NOTHING about telecommunting I'm afraid, ASSUMING that is what you're after? |
|
| 733. |
Solve : How to get text wrapping?? |
|
Answer» What CSS do I use to get text to wrap around a picture? I PUT a picture inside a div tag WITHIN the main div tag, and now all the text that I'm typing in the outer main div tag appears below the picture.Float the picture either to the left or right. |
|
| 734. |
Solve : Sub-menu transparency issue? |
|
Answer» I’m building a website using Dreamweaver CS6 on a MACINTOSH. On my menu bar |
|
| 735. |
Solve : Message board creation software/hosting - help?? |
|
Answer» Been reading this book, "Building Social Web Applications" by Gavin Bell, O'Reilly publications, so far from reading chapters 1 - 3, I believe I understand that creating/maintaining my own website involves a number of things, among which are key questions (for want of a better way of putting this, perhaps): |
|
| 736. |
Solve : Running html to test it via my browser - beginner? |
|
Answer» Quote from: BC_Programmer on June 15, 2012, 02:24:58 AM yeah my question was more the why on the human side, I just wonder if it was a purposeful omission or whether it was simply overlooked. I strongly suspect the latter. The dev forums are failrly quiet on the subject. I can't think of any reason why someone would deliberately allow <em> and omit <strong> (unless they have a pathological dislike of HTML elements with more than a couple of letters)!< em> is probably USED as < i> is not valid XHTML, whereas the substitution for < strong> is just < b> (which is still valid) so they probably DECIDED < strong> wasn't needed. Quote from: KPAC on June 15, 2012, 11:17:29 AM < i> is not valid XHTMLThe i entity is PRESENT in the XHTML-1.0-Strict document type definition. Quote from: BC_Programmer on June 15, 2012, 12:17:54 PM The i entity is present in the XHTML-1.0-Strict document type definition.Hmmm...always thought they replaced it with < em > in XHTML, not that XHTML is that important ANYMORE...Thanks to every one |
|
| 737. |
Solve : HTML5? |
|
Answer» *facepalm* I'm not sure why we're so worried about speeds anyway - we're only talking milliseconds in the difference. Exactly... and that would be the cumulative time. And if we are talking about just a few bloody tweens, I hardly see how somebody could prefer flash. (which wouldn't be faster anyway*) There are several key points to summarize. -Javascript is a plain-text language that has to be interpreted by the browser. -Veltas, at least, thinks that there should be some sort of "Binary code" that is "W3C approved" (whatever that means) for use on the web at large. -But the reason we don't do that, is that Binary Blobs are inherently unsafe. What is it, anyway? Some sort of byte code? machine code? Just saying "Binary standard" was a dreadfully vague thing to say. Bitmap FILES are a "Binary standard" but I don't see them as being very useful for animation. -Currently, the security issues are constrained by the browser's javascript interpreter. This would simply move that to a "new" interpreter for this Binary blob (or remove security and platform independence altogether if it was just a blob of machine code that could be arbitrarily run by a browser, Web-based ActiveX All over again... but W3C approved!) And of course the browser would still need a javascript interpreter anyway, so all this would do is multiply the attack surface- for no real gain whatsoever. *Allow me to explain why Flash will always UNIVERSALLY be slower than javascript,CSS/HTML: First, it's always a plugin. That means it always has to be loaded, for any Flash-based content to be viewed. various implementations of the plugin could easily change behaviour. Also, most browser plugin architectures on most windowed desktops have to create a Child window for it. This has several ramifications- first, it means that scrolling the page will require more work by the browser to properly clip the flash video being shown (otherwise it would appear atop other controls). You can already see this as a frequent symptom with Flash video- "native" HTML content, without ridiculous and sometimes browser-specific hacks, appears on top of everything else, simply by virtue of it using a window handle (on windows, or equivalent on other systems) and being a full-fledged OS managed Window, whereas the rest of the content is rendered as part of a larger frame. HTML5 would put those rendered elements as part of the rendered frame, making their actions, responses, and general interactions scriptable using javascript. And, by eliminating a Machine-Language binary from the browser, you've eliminated the biggest attack surface present in browsers for over a decade. Is it slower? well, maybe. But you know what? There is no point being minutely faster if it's inherently insecure. And I REPEAT, Adobe Flash is the primary reason that browsers now sandbox plugins. Quote from: BC_Programmer on January 15, 2012, 05:32:17 AM Firstly, BC, I think you need to get over yourself. Secondly, even if you use ActionScript all over an animation or for a site, it's still not taking up most of the processing time. Quote from: Veltas on January 15, 2012, 08:32:04 AM Firstly, BC, I think you need to get over yourself.What? You said that "not all flash has actionscript" Except it does. The fact is that Shockwave/Director/Flash itself, when creating tweens and other content in the editor, are basically going to compile that into actionscript. Just because a swf doesn't have user-created actionscript doesn't mean that it magically doesn't have any at all; any and all actions- animation or otherwise- in a flash video are done via ActionScript, or rather, actionscript bytecode. It's sort of like saying that not all Windows applications have a WinMain() function. It's only right if you don't look beneath the surface; all Windows applications have a WinMain function, just most languages and libraries hide it beneath their runtimes. Similar with ActionScript; just because you didn't add it yourself doesn't mean it isn't there. Quote Secondly, even if you use ActionScript all over an animation or for a site, it's still not taking up most of the processing time.This discussion would be a lot easier if you had used any of the involved technologies at some point. Quote It's sort of like saying that not all Windows applications have a WinMain() function. It's only right if you don't look beneath the surface; all Windows applications have a WinMain function, just most languages and libraries hide it beneath their runtimes. Similar with ActionScript; just because you didn't add it yourself doesn't mean it isn't there.An INTERNET comparison to that would be the class contructor function in PHP (or Java) - you can create one if you like but one will be added automatically if you don't. Quote from: kpac on January 15, 2012, 09:08:32 AM mustnot to tarnish your point, but there is a glaring exception with java- you must define a constructor in any class which derives from another class that doesn't have a parameterless constructor. For example: Code: [Select]//a.java public class a{ public a(int parameter){ } } //b.java public class b extends a } as that is, b.java will not compile, since it cannot automatically generate a parameterless constructor on account of such a automatically generated constructor simply consisting of a call to the parameterless superclass constructor, which in this case doesn't exist. Now you can of course create your own parameterless constructor which calls a superclass constructor with parameters, but in this case it can't be automatic. of course if you were really referring to javascript, than I have no idea of the semantics involved, though I'd be rather disappointed that you would confuse them Totally off-topic, but am I the only one that thinks interfaces should totally allow for a guarantee that certain constructors be present? I mean, I can throw an exception if reflection doesn't find the appropriate constructor, but it would be nice to have some compile-time checking, since that is sort of the point of using interfaces to begin with...Yes, I was talking about Java. I'm learning it at the moment in college, so not quite up on all the points yet - including the one you mentioned. HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML. Some rules for HTML5 were established: New features should be based on HTML, CSS, DOM, and JavaScript Reduce the need for external plugins (like Flash) Better error handling More markup to replace scripting HTML5 should be device independent The development process should be visible to the public |
|
| 738. |
Solve : Ways to learn PHP?? |
|
Answer» phpbuddy.com is a best website to learn PHP and you can also clear your doubts from w3schools.com i also have good experience in it.Alright, I've narrowed down what I'm searching for a tiny bit, and that birthday is 3 days away. Anyone know any resource that has EXERCISES, complemented with an answer key, that make me apply what I've learned? You know, the exercises start out easy, then slowly get harder. I think part of the PROBLEM I'm having with learning PHP is that I have no idea where to start practicing it, so it'd be helpful to have something telling me what to do. I didn't see anything indicating exercises in any of the resources posted on this thread so far. am I going to need to buy anything outside of a possible book to learn PHP? I should think not, there's plenty of free PHP hosting out there. Although for TESTING, I have IIS 7.5 with PHP 5.3 and MySQL 5.5 on my laptop to help me out with all that. Sorry if I'm too late I'm thinking of getting these three books. Does anyone have good/bad experiences with any of 'em? Are they good for a beginner? PHP 5 for the Absolute Beginner http://www.amazon.com/PHP-MySQL-Programming-Absolute-Beginner/dp/1592004946/ref=cm_lm_fullview_prod_2/102-7421431-9620950 PHP For Dummies http://www.amazon.com/PHP-MySQL-Dummies-Computer-Tech/dp/0470096004/sr=8-1/qid=1170178118/ref=pd_bbs_sr_1/102-7421431-9620950?ie=UTF8&s=books Web Database Applications with PHP http://www.amazon.com/Web-Database-Applications-PHP-MySQL/dp/0596005431/ref=cm_lm_fullview_prod_3/102-7421431-9620950I have bought and read this book and I found it very helpfull. http://www.amazon.com/gp/aw/d/1449325572/ref=mp_s_a_1?qid=1358101239&sr=8-2&pi=SL75 Only downside I found was it didn't cover Ajax. |
|
| 739. |
Solve : help with some html code? |
|
Answer» I am TRYING to use a button that adds text field boxes to a WEB site. I got the code to work but when I copy and paste the code to add another button it works but when HITTING the second "add text" button the text field appears under the first "add button" not the second "add text" button how do I change the code to make the text FIELDS APPEAR under the second "add text" button heres my code: |
|
| 740. |
Solve : Admin a website...? |
|
Answer» Hy all. Supposing that I have to admin a website(changing/updating/uploading photos/titles/prices) -for a JOB how could I do that ? What skills are required? And what PROGRAMS should I use? I WOULD really appreciate some help. Thanks a lot ! |
|
| 741. |
Solve : online form and online data collection? |
|
Answer» Hi |
|
| 742. |
Solve : HTML for white space in paragraph? |
|
Answer» I write children's books with lots of images and want to upload them to Kindle. I'm learning some basic HTML in order to do this. I now have a white blank line between paragraphs which is FINE but on Kindle there seems to be white spaces (blank line space) between the lines within a longer paragraph. My paragraphs have no space between the lines within the paragraph. Is there some way to fix this? Yes. You sound like you are new to HTML and your are a professional. Rather than spending a lot of time learning HTML code, learn how to use a editor that let you freely compose what your want. |
|
| 743. |
Solve : Unicode characters in a C.R.U.D php application.? |
|
Answer» Hey there! |
|
| 744. |
Solve : How to Add a Favicon to your Site? |
|
Answer» Favicon is right, but spell check don't like it. Years ago I did this and it did not always work. Here is an article that explains how. http://www.w3.org/2005/10/howto-favicon If you are diligent, you can get the browser to show a tiny icon in the ADDRESS line. Here is my question, Is the the only or best way to get the favion? (From http://en.wikipedia.org/wiki/Favicon#How_to_use) Use of a PNG format favicon does not seem to be supported in IE; Only a rel attribute with the value "shortcut icon" and a .ico format icon will work. Internet Explorer ignores rel="icon" completely (IE9 did last time I checked). I notice in the table that it's "not in citation given," so I looked at the citation. Microsoft's documentation PAGE doesn't explicitly say that rel="icon" is unsupported, but because it's missing from the exhaustive list including proprietary rel values while "shortcut icon" is INCLUDED, I'd say it probably isn't supported (and testing I did confirmed that a while back).I use this in my main site's index.php: CODE: [Select]<LINK rel="icon" type="image/png" href="http://bc-programming.com/favicon.png"> Works on IE8 (Win7) and IE10, Firefox (18.0.2), Chrome(25.0.1364.97), and Opera(12.14). Quote from: BC_Programmer on February 27, 2013, 06:46:32 AM I use this in my main site's index.php: I was about to wonder why it worked on your site in IE8 where the favicon I tried to use didn't. Then I saw that you also have a favicon.ico in the root of your site, which I was unable to use for my project because I didn't have access to the root of the domain. Quote from: TechnoGeek on February 27, 2013, 06:48:56 AM I was about to wonder why it worked on your site in IE8 where the favicon I tried to use didn't. Then I saw that you also have a favicon.ico in the root of your site, which I was unable to use for my project because I didn't have access to the root of the domain. I had completely forgotten about the .ico file. I bet I added it when the favicon wasn't working and I googled for why that would be. Quote from: BC_Programmer on February 27, 2013, 09:32:52 AM I had completely forgotten about the .ico file. I bet I added it when the favicon wasn't working and I googled for why that would be.Now you see why I asked. Why is it after all this years there is not clear, right documentation on a little thing? Thanks for your help. This for a family member, but still I want to do it right. |
|
| 745. |
Solve : PHP login field check.? |
|
Answer» I have this PIECE of code here and what it's supposed to do is to check if the user has selected their name from the dropdown list and then pressed "submit". If the user hasn't chosen his/her name then it should give a message saying "Please select a name". |
|
| 746. |
Solve : I have added a contact form 7 in my website it not working? |
|
Answer» I have ADDED a contact FORM 7 in my WEBSITE it not WORKING please help me [...] is my websiteWeak attempt at SPAM. |
|
| 747. |
Solve : Application with database for consultancy? |
|
Answer» Hi fellows , I am running small consultancy , I have excel sheets , sometime a single excel sheets is used by 3 and they all want to ADD comments , but it says that it is used by other , can I have any one application so that we can USE it on all the computer and keep adding data and which should be secure , and easily accessible |
|
| 748. |
Solve : Drop Down Menu not hovering correctly? |
|
Answer» Below is the code I put TOGETHER. It is formatted how I would like, but I cannot get the code to make the sub-text hover when hovering over the main topic. Does anyone have any suggestions?
did you check out http://www.w3schools.com/cssref/sel_hover.asp also adding a:hover { background-color:yellow; } that's an example which you may be able to implement in your code. |
|
| 749. |
Solve : Need Help with hooking or connecting to video embed codes? |
|
Answer» hi , i am currently working on a family site and was WONDERING how do i connect an button to videos to load in one page but different videos load in same page when someone clicks a different button . can you please explain to me how i can connect the button to the VIDEO embed code ?What do you mean by "connect"?what i mean by connecting is to have iframe load when u click a button and then when u click a different button another video opens on the same page i wanna know how to connect video embed CODES to img buttons to load on the same page but when u click the different buttons different videos OPEN |
|
| 750. |
Solve : Code for a website page? |
|
Answer» I don't know if anyone can help me but im after some code for a webpage |
|