Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
66% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
1 Commented Post
~173.29K People Reached
Favorite Tags

54 Posted Topics

Member Avatar for MrInternet101

[QUOTE=MrInternet101;1172481]My apologies. I hope this worked correctly. [CODE=php] <html> <body> <head> <title>taxwagefunction.php[</title> </head> <?php $hours = $_POST['enter_hours']; $payrate = $_POST['enter_RPay']; $name = $_POST['enter_name']; function taxcalc() { if ($hours > 40) $gross = $payrate * 40; $ot = ($hours - 40) * ($payrate * 1.5); $TotGross = $gross + $ot; { …

Member Avatar for Fram
0
8K
Member Avatar for rajesanthu

Could you imagine how quick that code would be to hack? I think for anyone interested in doing a secure login pop over to the php forum and ask about setting up sha-256 or gnupg encryption for sending login information to a database. It isn't exactly beginner stuff but definitely …

Member Avatar for nate_2
0
137K
Member Avatar for piers

Hi Everyone, I am trying to store the state of a show/hide button so that when the browser is refreshed it will show the previous stored state. I have a working solution for this on a JS fiddle https://jsfiddle.net/knetdk82/7/ However the issue I have is I cannot apply it in …

Member Avatar for piers
0
151
Member Avatar for mattyd

Hi, Please could you post the resolution as I would be interested to see what it was? Kind Regards, Piers

Member Avatar for Troy III
0
398
Member Avatar for piers

Hi, I have been trying to save the state of a sortable list. I have been able to save the sort order to localStorage and get the sort order so that I can display it on the console but I cannot get it to be the order it was last …

Member Avatar for piers
0
3K
Member Avatar for Muhammad_63

Hi Muhammad_63, Seeing as you have not specified if you can use JQuery or not yet I will explain how I would approach this: Create the form with the text boxes create ids for each of the text boxes In my code I would use if statements based on the …

Member Avatar for piers
0
114
Member Avatar for mattyd

Hi, You could try using first() and nextAll() and have the same class for your different fields. For example checkField = $(".class").first().nextAll().val().length; see JQuery documentation below for more information: https://api.jquery.com/first/ https://api.jquery.com/nextAll/

Member Avatar for jj.dcruz
0
365
Member Avatar for kazkuzzer007

Hi, If it is a countdown you can use Date() since the countdown is from a specific time then when you refresh the page it will show the countdown according to the time left. Some websites which may help: https://mindgrader.com/tutorials/1-how-to-create-a-simple-javascript-countdown-timer https://blog.smalldo.gs/2013/12/create-simple-countdown/

Member Avatar for piers
0
4K
Member Avatar for idesignyards

Hi, Your console.logs need ; on the end of them. Below is a link for more information. http://www.w3schools.com/js/js_output.asp

Member Avatar for piers
0
3K
Member Avatar for mitchell.schols

Hi, Let me know if the below link helps. It is an activity feed which you can put on your website for the activity on your page. It gives you code to embed. https://developers.facebook.com/docs/plugins/activity

Member Avatar for DavidB
0
445
Member Avatar for koneill

Hi, Have you tried using if (g) document.getElementById('imageTwo').style.left -= 5;

Member Avatar for koneill
0
374
Member Avatar for f_atencia

Hi, This puts the change into a variable. I am not sure what you want to do with it so hopefully this gives you some flexibility. The alert will show you what the data looks like in the variable. var data = { "WorkPhone": { "Phone": { "FixedPhone": "98221234", "Fax": …

Member Avatar for piers
0
123
Member Avatar for acrocephalus

Hi, You could use the plugin jquery.qrcode. The below site will give you information on it. http://larsjung.de/jquery-qrcode/

Member Avatar for piers
0
232
Member Avatar for piers

Hi, I am trying to take a number entry from a text field to use in some round Robin code to output the data. When I type a number for the variable num e.g. var num=12; the program works fine, but if I try to do it from text field …

Member Avatar for piers
0
179
Member Avatar for piers

Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing …

Member Avatar for piers
0
3K
Member Avatar for riahc3

How about using the HTML5 data-image="icons/icon1" data-image="icons/icon2" etc and then in your external css set the visibility to hidden. [data-role="image"]{ visibility:hidden; } then using jquery set the visibility to visible when it is hovered over. $('option').on('hover',(function(){ $('data-image').css('visibility','visible'); });

Member Avatar for riahc3
0
852
Member Avatar for happygeek

surely if you use things like mysql_real_escape_string and addslashes to your mysql queries this would limit the effect of hackers editing superglobals to access data?

Member Avatar for Gaetane
4
617
Member Avatar for deolalkar_pooja

Hi, Chances are you are on a windows OS so I will give some suggestions based on that: readyboost from a pen drive could help. Also defragment your computer. Move items from your desktop elsewhere. Items on your desktop make startup slower. Also if you search for msconfig and run …

Member Avatar for mayaestat
0
285
Member Avatar for PriteshP23

Hi, This code looks like php. What are you trying to do once you have selected all models? If you use JQuery it sounds like you want something like: $('.selectAll').on('click' , function(){ $('.checkbox').prop('checked', true); }); You would just need to make the class of each checkbox class="checkbox".

Member Avatar for PriteshP23
0
138
Member Avatar for darkofpain

Hi, I have found there is a plugin called mousewheel https://github.com/brandonaaron/jquery-mousewheel for the scrolling functionality. Also for the vertical Carousel you could use something like this: <head> <style> #carousel { height: 80px; overflow:hidden; } #carousel ul { height: 80px; padding: 0; margin: 0; width: 180px; } #carousel ul li { …

Member Avatar for darkofpain
0
473
Member Avatar for piers

Hi, I have been trying to create a little jquery plugin for myself so that I can reuse some helpful multiple button submit code. This plugin will allow me to have a class as a selector for every button I want to use on a webpage, a class for everything …

Member Avatar for piers
0
289
Member Avatar for momonq1990

Hi, this looks like jquery.form.js and the jquery validation plugin. This could be because the ajaxForm method is getting executed first. Does re-ordering your links to the plugins help? so you have your jquery library first, then your validation plugin and then your jquery.form.js?

Member Avatar for pixelsoul
0
244
Member Avatar for piers

Hi, I have been trying to use AJAX with JQuery in a feedback page I am trying to build. I can get the feedback submitted without going to a new page, but currently I can only see the feedback updated when I refresh the page. I called the feedbackdisplay.php file …

Member Avatar for piers
0
110
Member Avatar for piers

Hi, I am trying to create toggle buttons for a page with profiles in. I have around 60 buttons on the page and want to try not to define the click function 60 times: $(document).ready(function(){ $(".button1").click(function(){ $(".1").toggle(); }); $(".button2").click(function(){ $(".2").toggle(); }); $(".button3").click(function(){ $(".3").toggle(); }); $("p").css({display: "none"}); }); So I was …

Member Avatar for piers
1
1K
Member Avatar for piers

Hi guys I have an image that I need to resize for a website without losing any of the quality. The image has a .gif extention and when I have scaled the image down using GIMP the image goes a bit fuzzy. Do you know any software or method to …

Member Avatar for neotutorials
0
157
Member Avatar for njagi

easiest way I know is to view it in a web browser and then highlight the information and copy it to excel.

Member Avatar for ddellostritto
0
869
Member Avatar for piers

I have tried using is_numeric to validate some form data to make sure it is only numbers that are entered into the form. I couldnt get it to work so I decided to try and put a-z\A-Z in preg_match. I cannot get either of them to work although there are …

Member Avatar for piers
0
128
Member Avatar for Vigasdeep

[QUOTE=Vigasdeep;1169706]Hello, i'm having 2 tables one is CLG and other is STUD. in CLG(columns CID-autoincrement and CName) and in STUD( three columns are ID-autoincrement,Name and CID) > im using this code to store the records into tables [CODE]$sql="INSERT INTO clg (Cname) VALUES ('$_POST[cname]')"; $id=mysql_insert_id(); $sl="INSERT INTO stud (name,CID) VALUES ('$_POST[name]',".$id.")";[/CODE] …

Member Avatar for Vigasdeep
-1
116
Member Avatar for piers

Now I am using php and mysql so not sure if this should be in the php section. If you can help I would be most greatful. I am trying to create a search page so that it shows data and one of the columns in the mysql database contains …

Member Avatar for piers
0
111
Member Avatar for piers

Please can you help. I have been trying create a form to insert some data into a database. (I am coding with PHP and MYSQL). When I put any data into the field called enter treatments completed the database gets updated with the treatments_completed column containing a 0 and then …

Member Avatar for piers
0
117
Member Avatar for piers

This is the hardest thing I have tried yet. I am not adding ti as part of the main programme I am doing at the moment cus otherwise it would be too hard to debug. So I have created this as a separate file. I am trying to get a …

Member Avatar for peter_budo
0
3K
Member Avatar for piers

Hi I am struggling learning perl and everytime I try to enter stuff in at runtime I keep getting a 1 returned. I dont get it. please can you explain to me what I am doing wrong. #!/usr/bin/perl print "content-type: text/html \n\n"; &fname; print "\n totals are out of 140 …

Member Avatar for katharnakh
-1
85
Member Avatar for Prakash_8111

rand() for random generation Also sprintf "%.2f" #if you want 8 digits as decimal places use that

Member Avatar for KevinADC
-1
112
Member Avatar for piers

I am trying to teach myself perl and I cannot understand why when I print arrays from these subroutines that it prints an extra one that isnt there. @name=fname(@name)."\n".lname(@name); print @name; sub fname(@name) { @name=('john'."\t",'james'."\t",'edward'."\n"); print @name; } sub lname(@name) { @name=('hunt'." \t",'jones'."\t",'smith'); print @name; } this is what I …

Member Avatar for dweebsonduty
-1
65
Member Avatar for piers

Something I have noticed with my uni course is that there are so few women on it. Is there some reason why women stay away from the best part of using a computer IE programming in java? am I a bit strange in getting excited when I finally finish a …

Member Avatar for neocoder
0
349
Member Avatar for piers

I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double …

Member Avatar for piers
0
800
Member Avatar for vladdy19
Member Avatar for spywx2003

don't use stringTokenizer cus that is being wiped out. Use Split. Go to the java API and it will tell you how to use it.

Member Avatar for taineechan
0
182
Member Avatar for piers

I have to do a really strange thing. I have to take a string of 2 words and then separate it and put it into two other strings eg String name = "fred blogs"; move the part of the string name which says fred to the String firstname so it …

Member Avatar for Parsu7
0
155
Member Avatar for sarath.koiloth

object orientated programming is using objects to code so as to remove the need for global variables, create better securer code and programming at a higher level than that of machine code.

Member Avatar for jwenting
0
102
Member Avatar for wolverine_ramir

to convert a string to an real number which you will need with your conversions use double num = Double.parseDouble(enteredString);

Member Avatar for piers
0
86
Member Avatar for williamku87

well for starters your emp_pos is null also you a_pos isnt defined as anything so try a_pos = "lol"; emp_pos = a_pos; then see if that works.

Member Avatar for piers
0
125
Member Avatar for nuch1311

To print in something like a table format on the command line use "/t" and "/n" in System.out.print(); If you want a table format using a gui then look at the libraries on the JAVA API website.

Member Avatar for piers
0
122
Member Avatar for mtbutt
Member Avatar for piers
0
101
Member Avatar for piers

For the guys who helped on the card.java file I did thnaks a lot I got that done. I have now moved onto the next part of that and have to complete this skeleton file. this is the spec for this file. [QUOTE]This class has two attributes: an array of …

Member Avatar for Ezzaral
0
156
Member Avatar for piers

right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of …

Member Avatar for Ezzaral
0
143
Member Avatar for piers

I have been given a homework this is it: [QUOTE]Homework 7 Due in your lab in week 10 For this homework you are expected to write one program, which consists of a main method and an insertWord() method. You must work on the program outside the formal laboratory sessions. The …

Member Avatar for iamthwee
0
98
Member Avatar for piers

this is the homework I have to do [QUOTE] This homework is due in week 3. You must work on the program outside the formal laboratory sessions. The program must be ready to be executed at the start of the scheduled laboratory session. Remember you may be asked to explain …

Member Avatar for piers
0
172
Member Avatar for piers

okay I have been working on a little project of my own for a while. At the moment it prints out the chapters read and once 100% of the chapters read is greater than 100 it shows on the next line of my code the number of times the book …

Member Avatar for Ezzaral
0
94
Member Avatar for piers

I have a section of code in a programme I have: [B]long b; if (show>1189&&<1189*2) { b=1; } else if (show>1189*2&&<1189*3) { b=2; } else if (show>1189*3&&<1189*4) { b=3; } [/B] The variable show is an already defined string which takes a number value. So I want to output the …

Member Avatar for piers
0
85

The End.