Thank you Jay for responding.


Let me clarify again. The $_GET Parameter was used to to transfer the name from the results page (with the tables etc) to a full-profile_1.php page. On the full_profile_1.php page the user is displayed a form with all the details about the company. On the same page there is a form where changes can be made to values of the fields. I am trying to pass the company name in this form as a POST Parameter. However the Update part of the full_profile.php page is not able to get this value.


The main point to remember is that full_profile_1.php does 2 things :
1.) Display all the fields of the company as a form which is editable
2.) Now if the user were to make changes in the values that were returned in the form above , the changes should be updated in the
record. Now my problem is trying to transfer the name of the company from the 'form' to the update query.



The way the logic on the full_profile_1.php is designed is as follows:


if ($submit)
{
// This is after the user has been displayed all the fields of the record and he has made some changes and wanst to Update them
// The Problem is how do I get the same name of the company in this loop. I have tried to pass the name as another $_POST Variable
from the Form in the else part below, but when I try to access it over here. nothing comes.
$temp1 = $_POST['temp']; // RETURNS EMPTY
:(
}



else{


// here we get the name of the company as a $_GET Parameter from the previous page
// display all the records of the selected company as a editable Form
<form name="form1" method="POST" action="full_profile_1.php?temp=$row['company']">


}




Thanks again, and have a great weekend !


--Pushpinder


On Friday, August 8, 2003, at 04:20 PM, Jay Blanchard wrote:


[snip]
My question here is  " How do I get the name of the company  that was
passed to this script as a $_GET Parameter. I cannot use the $company
because it is out of scope.
[/snip]

How about $_GET['company'] ? Or am I missing something?

Have a pleasant day.

Reply via email to