Jump to content


Photo

Getting information


  • Please log in to reply
1 reply to this topic

#1 massive

massive
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 01 June 2006 - 07:17 AM

Hi, i have a question is there another way of getting your data from another page besides this:


if((!isset($_GET['id']) || trim($_GET['id']) == ''))
        {
            die('Missing record ID!');
        }
    $id = $_GET['id'];



thanks :)

#2 massive

massive
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 01 June 2006 - 07:31 AM

Follow up to my question...why im asking this is because i have trouble submitting my forms, i always receive "missing record Id" even though the datas where displayed correctly getting the information from the other page.

Script1.php

<include/class.php> //<<<---------i'm using classes
if((!isset($_GET['id']) || trim($_GET['id']) == ''))
{
die('Missing record ID!');
}
$id = $_GET['id'];

<html>

the data were displayed here coming from the other script
</html>


ok it displays perfectly now when i submit it:
message: missing record id...


i have trouble submitting my forms when it come to classes in a way when i include the:

if((!isset($_GET['id']) || trim($_GET['id']) == ''))
{
die('Missing record ID!');
}
$id = $_GET['id'];

thing...tnx


any ideas of getting data from other pages when it comes to object-oriented programming?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users