User Profile

Collapse

Profile Sidebar

Collapse
gubbachchi
gubbachchi
Last Activity: Dec 21 '09, 04:08 AM
Joined: Jan 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks hsriat, its working!!!
    See more | Go to post

    Leave a comment:


  • posting form data from dynamically created form elements

    Hi,

    I have a form whose elements are created dynamically on selection, i.e. the form has only text boxes and the number of text boxes depends on the users selection, if user selects 3 then 3 dynamic text boxes are created and if user selects 4 then 4 dynamic text boxes are created and so on. Here is the code I am using to dynamically create the text boxes:

    Code:
    echo ("<form name='exam' action='exam_2.php' method='POST'>");
    ...
    See more | Go to post

  • Hi, thanks for the reply.

    I need some more help regarding this.
    Where will I include this part of code. How can I embed html with javascript in the body part. Please explain me more about this line since I my knowledge in javascript is poor. "textId.classNa me='Whatever You LIke';". Please help me.

    With regrads,...
    See more | Go to post

    Leave a comment:


  • Here is my code,

    kaps.php

    Code:
    <p>
    <form  method="POST" name="kaps" id="kaps" action="" >
    
    <table>
    <tbody>
    <tr class="s1">
    <th scope="s2">My name</th>
    <td colspan="2"><input type="text" name="name" value="<?print $name; ?>"></td>
    ...
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic Changing row color row on submit button

    Changing row color row on submit button

    Hi all,

    I would like to know how to change the background color of a particular row when the submit button is clicked. I mean to say when the user makes a wrong entry in the textbox and click submit button, the row containing that particular textbox should be changed to other color. can anybody give me some idea as to how can this be done. Can this be done with php or javascript.
    Please give me some hints.
    See more | Go to post

  • Changing color of required fields on wrong entry

    Hi,

    I have a application where there are number of fields for name, age etc designed with PHP ans CSS. There are some required fields with * marking, when the user forgets to enter the data or makes any wrong entry, the field color should change. How to achieve this is CSS.
    Please anybody give me some hints regarding this.

    With regards
    See more | Go to post

  • gubbachchi
    replied to Deleting from mysql
    in PHP
    Thank you for the reply' s.
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic Deleting from mysql
    in PHP

    Deleting from mysql

    Hi,

    There is a 'delete' link in home.php page, when it is clicked a row in the database is deleted. How do I write the code for this. I am using this line of code
    [HTML]<a href='delete.ph p?id=1'>Delete</a>[/HTML] ,
    then when link is clicked, it is directed to delete.php page. At the last I have used this line of code to redirect back to home.php page

    [HTML]echo '<META HTTP-EQUIV="Refresh"...
    See more | Go to post

  • gubbachchi
    replied to Drawing bar graph using GD and PHP
    in PHP
    Thanks dlite922 for your reply.

    But I need to do this using GD only, this is requirement of the project.

    With regards
    See more | Go to post

    Leave a comment:


  • gubbachchi
    replied to Drawing bar graph using GD and PHP
    in PHP
    Hi,

    Thanks for your reply.
    Actually what I need is, I need to mark divisions on X-axis and y-axis.
    That is on x-axis i need divisions of 10,20,30,40 and on y-axis 500,1000,1500,2 000,2500 to be marked on horizontal and vertical axis to be marked. I hope you got the point now. Can you please help me out.

    With regards...
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic Drawing bar graph using GD and PHP
    in PHP

    Drawing bar graph using GD and PHP

    Hi all,

    I have got a problem with plotting bar graph using GD. I am learning GD now.

    I have written the code for basic bar graph with one bar. What I need is, scale on Y-axis i.e. divisions on y-axis like 500,1000,1500 upto value which I have mentioned in $max variable which in my case is 4000.
    Here is the code

    Code:
    <?php
      
    header("Content-type: image/jpeg");
    ...
    See more | Go to post

  • gubbachchi
    started a topic displaying data fetched from mysql
    in PHP

    displaying data fetched from mysql

    Hi,

    For my project I have a "add" button, upon clicking it, it will take the user to next page where there will be a text box and list of data displayed below it which is fetched from mysql database. I have written the code for this which is working fine. But I have a problem, i.e. when user enters the code in text box and clicks "go" button a group of data will be fetched from the database and should be displayed...
    See more | Go to post

  • gubbachchi
    replied to problem in IE with aligning table
    Hi,

    It helped me a lot. Thank you so much
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic problem in IE with aligning table

    problem in IE with aligning table

    Hi all,

    I have a problem with css table. The code below works fine with firefox but the problem is with Internet explorer.
    This code actually fetches data from mysql database and display it in the form of table for which I have used CSS. In firefox the fetched are aligned properly but in Internet explorer, the width alignment is messed up.
    Here is the code I am using

    main.php
    Code:
    <html>
    ...
    See more | Go to post

  • gubbachchi
    replied to redirecting the page using php
    in PHP
    Hi,

    here is my page3 code
    Code:
    <html>
    <body>
          <?php
       
          $Uname = $_POST['Uname'];
       
          $Uage = $_POST['Uage'];
       
           
       
          $sql = "INSERT INTO user_info(user_name,user_age) VALUES('$Uname','$Uage')";
       
          $result = mysql_query($sql);
       
          ?>
    </body>
    ...
    See more | Go to post

    Leave a comment:


  • gubbachchi
    replied to redirecting the page using php
    in PHP
    Thanks for the reply

    I have used header() redirect but I am getting the warning
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/kilorie/kil_ver3/page3.php:3) in /var/www/kilorie/kil_ver3/page3.php on line 146

    can you give me some hint...
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic redirecting the page using php
    in PHP

    redirecting the page using php

    Hi all,

    In my application there is a link in page 1 by name "plan", when it is clicked it directs to page2 which contains a form with many fields and submit button. When the user clicks the submit button, php and mysql code is written in page3 to store data in mysql. Here is code I am using

    page2

    Code:
    <form name="plan" action="page3.php" method="POST">
    Name
    ...
    See more | Go to post

  • gubbachchi
    started a topic disabling the form elements
    in PHP

    disabling the form elements

    Hi all,

    I have an issue here.
    There is a link "My plan" in the php page1. On clicking this link directs to a form which has some entries that has to be filled by the user.And once the user fills the form and clicks the submit button the entries will be stored in the database.

    What I need is, when the user fills the form and submits the form once all the form elements should be disabled. If the user...
    See more | Go to post

  • gubbachchi
    replied to convert fractions into decimal
    in PHP
    Thank you all,

    I will go through your suggestions and choose the best way.
    See more | Go to post

    Leave a comment:


  • gubbachchi
    started a topic convert fractions into decimal
    in PHP

    convert fractions into decimal

    Hi all,

    How to convert the fractions into decimals and vice versa in php.
    I have a form, where the user will enter fractions in the text boxes such as "1 1/2", "1 1/4" and so on. I need to store all these values in mysql database after converting it into decimal value, and again fetch the value from database and re-convert it into fractions and display it to the user in a different php page. So what is best...
    See more | Go to post
No activity results to display
Show More
Working...