Jump to content


  • Posts

  • Joined

  • Last visited

About sangeetha

  • Birthday 10/27/1984

Profile Information

  • Gender
  • Location

Contact Methods

  • Yahoo

sangeetha's Achievements


Newbie (1/7)



  1. can i use submit button instead of image type to submit? how to place the image on the button?
  2. function setSubmit() { if (document.f.m[0].checked || document.f.m[1].checked || document.f.m[2].checked || document.f.m[3].checked ) { document.f.submit1.disabled = false; return true; } else { document.f.submit1.disabled = true; document.getElementById("submit1").src = "images/image1/Next-2.gif"; }} function init () { document.f.submit1.disabled = true; } window.onload=init(); <input type=image name=submit1 id=submit1 src=Next-1.gif disabled=disabled >
  3. hiI am having a form which has 4 radio buttons and the page has to be submitted.For submit button i am using image input type which is disabled untill one of the radio button is selected and after the radio button is selected the image was enabled. Now i want to display another image instead of the disabled image.Thats is i want two different images to be displayed. first image should be displayed when image is disabled and the another image should be displayed when the image is enabled. Can any one help me in solving this problem. What are the events i should use for this purpose.Thanks in advance.
  4. for example, for an audio file we do have like description about that audio , file size, etc..I want to extract those details. I have coding to get the path of the file, the directory name etc.
  5. sorry. not like that. i want to store those values in database and hence i want to extract the description, modified date of a file. How to get those information through php.
  6. Hi,When we pass cursor on some files we get some information about file like description, version, created date,modified date, author etc.,Is there any php functions to return this information?Thanks in advance
  7. i want to display the page numbers as in this forum with first, previous, current,next,last. can anyone help me how to do that please
  8. sangeetha

    embed audio

    Hi. How to embed the audio? Actually i am developing a online test in which the questions are framed on the basis of audio that is played. So to answer the questions the students should hear the audio. I have this code. <EMBED src="example.wav" autostart=true hidden=true> But when i submit the page and the next question is loaded the audio is also getting loaded from the starting. How to make the audio to play from where it has stopped when the same page is loaded again.. Thanks.
  9. function enable_submit () { var sub = document.getElementById("mysubmit"); if (document.getElementById("myselect").selectedIndex > 0 ) { sub.disabled = false; } else { sub.disabled = "disabled"; } } can u please say how to check the same for radio button option.what to replace for this word " selectedIndex " ?
  10. Hi...I have a situation where a submit button is inactive until something is selected onthe page and activate the submit button after the option is selected. Can anyone help me to solve this problem.
  11. This is the code which i use to export , which is tab seperated format. class ExportExcel{ //variable of the class var $titles=array(); var $all_values=array(); var $filename; //functions of the class function ExportExcel($f_name) //constructor { $this->filename=$f_name; } function setHeadersAndValues($hdrs,$all_vals) //set headers and query { $this->titles=$hdrs; $this->all_values=$all_vals; } function GenerateExcelFile() //function to generate excel file { foreach ($this->titles as $title_val) { $header .= $title_val."\t"; } for($i=0;$i<sizeof($this->all_values);$i++) { $line = ''; foreach($this->all_values[$i] as $value) { if ((!isset($value)) OR ($value == "")) { $value = "\t"; } //end of if else { $value = str_replace('"', '""', $value); $value = '"' . $value . '"' . "\t"; } //end of else $line .= $value; } //end of foreach $data .= trim($line)."\n"; }//end of the while $data = str_replace("\r", "", $data); if ($data == "") { $data = "\n(0) Records Found!\n"; } //echo $data; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$this->filename"); header("Pragma: no-cache"); header("Expires: 0"); print "$header\n$data"; }}?>
  12. Hi..can anyone help me in solving this problem. I have exported the marks of the students from mysql to excel using php and its working well. Now I want to differentiate the marks of the students according to the pass percentage. If the student fails then i have to display the marks in red color. That is, i have to change the font color based on the marks they have secured. In excel we have conditional formatting. How can i do the same using php..
  13. Thanks.. Its working good now.
  14. for example, if the field names in the table are stud_id, sub,marks, den how to change those field names as student id, subject, marks for my purpose ? for ($i = 0; $i < $count; $i++) {$header .= mysql_field_name($export, $i)."\t";} But when executing the above code we get stud_id, sub,marks, which is the field names in the table.
  • Create New...