User Profile

Collapse

Profile Sidebar

Collapse
learnPHP
learnPHP
Last Activity: Oct 3 '08, 10:34 PM
Joined: Mar 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • combining textfields to form a variable data and thend sending through URL

    Hi,

    I am trying to get a couple of text field entered in the text boxes and am then wanting to concatenate the data into one PHP variable. Finally i want to send the php variable in the action command through the URL of the next page. please let me know how to do this.

    Code:
    <p align="center">
                                                         <input name="textfield" type="text"
    ...
    See more | Go to post
    Last edited by Markus; Oct 3 '08, 06:57 PM. Reason: fixed code tags

  • Accessing a variable in one perl script from the other

    Hi,

    I am completely new to Perl. I am trying to access a variable in one of my Perl scripts from a 2nd perl script.

    The 1 st script uses a file and extracts some data and manipulates the data and assigns the variable $p with some value.

    Now after the 1 st script has been executed I want the value of $p in my 2nd script. Is that possible?? Please let me know how to access this value of $p.

    ...
    See more | Go to post

  • learnPHP
    started a topic add background image
    in PHP

    add background image

    Hi,

    I have 2 background images.
    Ineed to add the first image if the value of variable test is 1 otherwise i need to add the second background image.

    I have written the following code:
    Code:
    <?PHP
    			   if ($test ==1)
    			   echo "<td width='50%' valign='top'  STYLE='background-image: url('img/table_faoback.jpg');'>";
    			   else
    			   echo "<td width='50%'
    ...
    See more | Go to post

  • learnPHP
    started a topic Session variables help
    in PHP

    Session variables help

    Hi ,

    I am back with another small problem:

    I want to create a session in which i want to declare a session variable. I want to use the value of that session variable on the next two pages. This is the code that i have.

    1st page:[CODE=php]<?PHP
    session_start() ;
    session_registe r ("demo");
    if($_SERVER['HTTP_REFERER'] == "http://localhost/FAO_test/firms_WEB/Untitled-6.php")...
    See more | Go to post

  • learnPHP
    started a topic Sessions
    in PHP

    Sessions

    Hi ,

    I am back with another small problem:

    I want to create a session in which i want to declare a session variable. I want to use the value of that session variable on the next two pages. This is the code that i have.
    1st page:
    Code:
    <?PHP
    session_start();
    session_register ("demo");
    if($_SERVER['HTTP_REFERER'] == "http://localhost/FAO_test/firms_WEB/Untitled-6.php")
    ...
    See more | Go to post

  • learnPHP
    replied to extract data from URL
    in PHP
    Hi,

    Thanks for the help....
    See more | Go to post

    Leave a comment:


  • learnPHP
    started a topic extract data from URL
    in PHP

    extract data from URL

    I have a page which needs to be loaded. The page has the following URL

    http://localhost/FAO_test/firms_WEB/subscribe.php?n ext=1&mode=add& email=&node=1

    or something like this.

    What i want is the value of "next" which is = 1 here.

    I actually want this value before the page is displayed that is as soon as a user is directed to this page i want to know the value of next...
    See more | Go to post

  • Hi Ronald,

    I did not get what you said...could you be more clear as i am a beginner at all this. If that is not the right way what is the other way i can use??...
    See more | Go to post

    Leave a comment:


  • Change the header of a page depending on the source.

    We have two headers for a page. the firs header is displayed when we come to the page from site "X" and the second header is displayed when i come from site "Y". How can i check from which site i am coming to the page and accordingly display the right header? Please help me with code pieces.

    Thank you
    See more | Go to post

  • learnPHP
    started a topic writing into CSV from a web page
    in PHP

    writing into CSV from a web page

    HI,

    I have a few PHP pages. The pages have text boxes of variable sizes. when i enter data into the text boxes the data is written into a csv file. Each text box corresponds to one column in the csv. However the problem i am facing is that if i enter a comma (,) in anything that i write in a textbox then when it is written to a csv it gets converted into two texts that is data before the comma is in one column and data after the comma...
    See more | Go to post

  • learnPHP
    replied to Combine Various pages into a single one
    in PHP
    Yeah i am submitting each form and storing the data using PHP session variables..
    See more | Go to post

    Leave a comment:


  • learnPHP
    started a topic Combine Various pages into a single one
    in PHP

    Combine Various pages into a single one

    Hi,

    - I have 3 HTML files with javascript and PHP codes in each and each containing 8 questions for the user.
    - I want to convert these 3 files into 1 file say test.
    - That is when i first see the file on a browser i see the 8 questions, and when i press continue button action should go to test itself

    - and the next 8 questions should be dislplayed.

    However i am not sure where and what code...
    See more | Go to post

  • learnPHP
    replied to To make multiple pages in the same page
    in PHP
    How can i restrict a piece of HTML code to execute using JavaScript. I am not being able to do that. and also how do i use javascript variable here...since after pressing the continue button wouldnt the value of that variable change to its original value?
    See more | Go to post

    Leave a comment:


  • learnPHP
    replied to To make multiple pages in the same page
    in PHP
    I am sorry for not being clear. let me try and explain again
    1) I have a questionnaire which has three pHP pages survey, Survey1, survey2
    2) each php has 8 questions.
    3) now what i want to do is instead of having 3 php pages have a single page say new_survey. But at one time it should display only 8 questions. then when i continue to next page i use session variables to store the data that has been entered which is mentioned...
    See more | Go to post

    Leave a comment:


  • learnPHP
    started a topic To make multiple pages in the same page
    in PHP

    To make multiple pages in the same page

    Hi

    I have 3 PHP pages with different names for a common survey. the first page has 8 questions next page the next 8 and so on. I have coded the three pages as separate PHP pages with names survey, survey1,survey2 . what i want is make a single php file say survey which contains all info. So when i press submit the after 8 questions it should redirect to survey itself and survey should understand that next set of questions need to shown...
    See more | Go to post

  • I think i had misunderstood the problem completely. Actualy the database consists of list of names of files that are related to a particular link.What i need to do is when that link is clicked go into the database and see which files should be available to the user and knowing that ,the files should be available on the next page. then i click on the file name and the file opens and i can view it.All files are word files....
    See more | Go to post

    Leave a comment:


  • Hi Ronald,
    Could you please direct me to some good tutorial in this context that is how to make a connection using ODBC and which has some sample code as well where some data is being picked from a database and displayed on a web page?

    Thanks,...
    See more | Go to post

    Leave a comment:


  • Is it poosible to read data from a database and add to a document using PHP?

    HI,

    I need to connect to a database in MS Access and then extract the data that is there and insert it into a word file. is it possible to do this using PHP? Along with posting the data onto the document file i need to display it on the web page as well. Is this possible through PHP. I am quite new to the world of PHP. ihave read tutorials but havent managed to find anything that would help me. Please let me know if this can be done...
    See more | Go to post

  • learnPHP
    replied to Read from 2nd line of CSV file
    in PHP
    Yup it worked.. Thanks a lot.. Had been trying all sorts of things...Thank you.....
    See more | Go to post

    Leave a comment:


  • learnPHP
    started a topic Read from 2nd line of CSV file
    in PHP

    Read from 2nd line of CSV file

    Hi,

    I was working on a questionnaire. the answers to the questionnaire are stored in a csv file which acts as my database. Now i am trying to retrieve the data from the file into a table. However i want to start reading from the 2nd row of the file but am not being able to do so.
    the code is like this:
    [php]$rowcount = 0;
    while(!feof($in ))
    {
    $rowcount = $rowcount + 1;
    $row = fgets($in);...
    See more | Go to post
    Last edited by ronverdonk; Mar 4 '08, 06:58 PM. Reason: code within tags!!
No activity results to display
Show More
Working...