I have problems cleaning up a couple of input field. I've been pecking away at this issue since I wrote the application about 18 months ago. When I think I have it cleaned up; it pops up again, when users violate rules (as they often will do) and the extra spaces and tabs show up. I have a form that is filled via Copy from an excel file (this is a requirement) and pasted into the textarea: <textarea name="header_fields" cols="60" rows="6"><?php if(!empty($error)) {echo $varAllText;} ?></textarea> When the form is processed, the field is received via the following: $varAllText = trim($_POST['header_fields']); …

Member Avatar
Member Avatar
+0 forum 1

ok i dont quite know why i keep getting these error in my program.. here is the program: #include<stdlib.h> #include<stdio.h> #include<math.h> Void open(void); int read(float*); float average(float*); void write(float*,float); void close(void); FILE *fptrin,*fptrout; main() { float number[10],non,ave; open(); read(number); non=read(number); ave=average(number,non); write(number,ave,non); close(); return(0); } void open(void) { fptrin=fopen("avg.dat""r"); if(fptrin==0) { printf("\nFile Will Not Open!!!!\n); exit(0); } return; void close(void) { fclose(fptrin); fclose(fptrout); return; } void write(float *number,float,ave,int non) { int i; for(i=0;i<non;i++) { fprintf(fptrout,"%f\n",number[i]; printf("\n%f",number[i] } fprintf(fptrout,"%f",ave); printf("\n%f",ave); return; } int read(float *number) int i,done; for(i=0;i<non;i++) { done=fscanf(fptrin,"%f",&number[i]; if(done==-1)break; } return(i); float average(float *number,int non) float sum,avg; printf(\navg is …

Member Avatar
Member Avatar
+0 forum 2

I'm having trouble with an application in Tkinter. The program displays a button that has a picture on it and that button takes you to a website about that picture, but that is not where the issue lies. There is another module that I have found on an internet tutorial for tooltips (those popups when you hover over a button, and when imported it does work fine, however, there is a weird side effect. An extra window pops up behind the intended one with just a button that says 'hello' and the title of the window is Tk. If you …

Member Avatar
Member Avatar
+0 forum 11

i am looking for some advice on what is the best approach to get this done :) my datababase holds a table categories with the columns [CODE]|category_id|category_name|category_parent_id|[/CODE] i am showing my users a html sortable table with the following columns |category_id|category_name|category_parent_name| so what i want, is to do a ORDERBY on the category_parent_names so i would like to have a temp extra column like [CODE]|category_id|category_name|category_parent_id|category_parent_name|[/CODE] so i can sort on category_parent_name. What is the best way to go on this?

Member Avatar
Member Avatar
+0 forum 1

Hi good day! If somebody will help me with this little problem of my sister. She wanted to have extra income on the net.. She preferably wants to start at online typing job with great deal both the company who offer the job & her.. If any of you guys who has a better idea, pls let me know your comments.

Member Avatar
Member Avatar
+0 forum 4

ifstream mystream(file_name); ofstream outputstream(filename, ios::out); do { mystream.getline(line, 100); mystream >> country_name >> happiness_value; total_happiness = total_happiness + happiness_value; count++; outputstream << country_name << " \t \t " << happiness_value << endl; } while (!mystream.eof()); the file ifstream is reading from is a .dat file, in this format: first 1 second 2 third 3 fourth 4 This is the exact file ifstream is opening, but for some reason when I check my output file is shows like it should except it displays "fourth 4" twice, e.g : fourth 4 fourth 4 Why is my loop iterating more than it should? …

Member Avatar
Member Avatar
+0 forum 5

Greetings - - I am new to daniweb and am also am at my wits end with Dreamweaver MX. I converted a Adobe Illustrator file that encompasses jpeg artwork and RGB process colors to a GIF file. No matter what I do, I get unwanted white space at the top of the main table (above the picture and Sports in a Maximum Security Red Banner). I set all the CSS to 0 for the margins, even getting rid of the borders - - but still get that stubborn white space. The original AI document was set up as a transparency, …

Member Avatar
Member Avatar
+0 forum 15

The End.