oracle php connection

Discussion in 'PHP' started by sanhitasinha, Feb 26, 2007.

  1. #1
    hello

    i hv 2 probs

    i m new to php

    1> am stuck wid the connection.. my backend is oracle.. can u plzz help how to achieve it??

    $con = mysql_connect("","","");

    plzz help.. i need to connect with oracle :confused:

    2>even in a simple program.. whr i am posting a data for Name from a page to another by "get " method... in the next page.. the data is seen in the URL but the page is coming as blank

    plzz help :(

    code for 2nd

    1st page
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body bgcolor="#FFFFFF" text="#000000">
    <form action="welcome.php" method="get">
    Name: <input type="text" name="name" />
    Age: <input type="text" name="age" />
    <input type="submit" />
    </form>
    </body>
    </html>

    2nd page

    <html>
    <body>

    welcome<?php echo $_GET["name"]; ?>.<br />
    u r<?php echo $_GET["age"]; ?> of age

    </body>
    </html>


    plzzz help!!!
     
    sanhitasinha, Feb 26, 2007 IP
  2. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    your code for php form post by get method seems ok. it should work try and using print_r($_GET); it will print whole $_GET array on browser.

    now what you called problem dosen't seems to be a problem: You are new to PHP so do every great program has been once..

    By the way for connection to oracle here are methods

    for more information i will suggest to have some look into phpmanual or website

    Wish you best of luck for your PHP career
     
    rays, Feb 28, 2007 IP