Jump to content

Recommended Posts

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?
Link to comment
https://forums.phpfreaks.com/topic/10932-getting-information/#findComment-40820
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.