User Profile

Collapse

Profile Sidebar

Collapse
NorKayak
NorKayak
Last Activity: Jan 29 '15, 02:02 PM
Joined: Jan 22 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NorKayak
    started a topic Variable conversion PHP to Javascript.
    in PHP

    Variable conversion PHP to Javascript.

    Hi;

    I'm a beginner and I'm getting a big headache figuring how to convert php variables into Javascript variables.
    I want to use the content of $theName as the value for an input tag. $_SESSION['$Sess_Name'] is loaded with the right data, I verified it. But my function InitField returns always the word NULL.
    Why is that? Where is the problem?

    Thanks

    Code:
    function InitField() {
    ...
    See more | Go to post

  • NorKayak
    replied to Can't get the $_GET variable...
    in PHP
    Thanx for trying to help Rabbit. The problem was so obvious I didn't see it:I used $_GET instead of $_POST. Beginner....
    It's working fine now.
    See more | Go to post

    Leave a comment:


  • NorKayak
    started a topic Can't get the $_GET variable...
    in PHP

    Can't get the $_GET variable...

    I have this little bit of code:

    Code:
    <?php>
       ob_start();
       session_start();
       $_SESSION['Sess_User'] = $_GET['UserName'];
       $_SESSION['Sess_Pass'] = $_GET['Password'];
    ?>
    After I had an if structure to check the content of $_SESSION['Sess_User']. But whatever the content the return was always false. So I wrote that line:

    Code:
    echo $row["UserName"]
    ...
    See more | Go to post
No activity results to display
Show More
Working...