Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




How Can I Pass Variables Via POST In A Script?


Let's assume we have a script that only accepts POST variable input.. How is it possible to pass variables to it (using a php-script)?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Search - Pass Variables Or Self Post
I've created a database of documents that is searchable by a variety of fields. Currently I have a PHP page called search.php with a form to get the keywords from the user and it then passes this back to itself, runs a query and displays the results. Doing it this way the address for the search page and the results of the search is the same.

This all works fine and I'm happy with it but I was wondering if it should be implemented differently where the keywords are used as a part of the address like with search engines with Google. I don't know what the advantages or disadvantages is for either method so I'm keen to hear what others think is the best method.

How To Pass Current POST Data To Next Page ?
I got 2 php pages, called A.php and B.php.

A.php will display all the selected records to the user and ask for confirmation before any attempt to delete. Let say the user click on the submit button, the action of the form is pointed to B.php.

So my problem is, how can I pass all the current POST data in A.php to B.php as well ?
I need that cauz the POST data in A.php contains the data needed like ID, to perform the deletion.

I can manually write a VBScript to transfer the existing data into a query string and transfer it to the next page. However, it's not a POST data in nature. It wil become GET data right ? So what should I do ?

Methods To Pass Variables
I am trying to pass 8 variables from a search form to different pages and I am confuse whether to use:
1) session
2) cookie
3) passing variable through URL
4) Using hidden form field

My page#1 is a search form and with 8 Select fields. After press Submit Button, page#2 shows all the search results. Some search would show up 100+ rows so I am using a script to break the result pages. Each display page would limit 20 records with links <<Previous 1 2 3.... Next>> at bottom.

However only the first search result page would show up properly but rest of search result won't showup.

I read a few threads on this forums and I wonder what is the best method to use in my case??? It seem passing variable through URL is inefficient in my case since there are 8 variables. With session or cookie, what happen if the user decide to do another search (page#1 search form) without closing browser will the session id renew itself. With hidden form field, since my Page#2 (result display page) is not using form, will it work.

Pass Get Variables Using PHP Header()
I got a form page with 'update' & 'cancel' buttons. When 'cancel' clicked, I want to be redirected to the index page on the right page number.

URL of my edit page is like this:
http://localhost/form.php?op=edit&id=1&cursor=2

In the form.php I got few lines of code to get that 'cursor' before doing redirection:

$iCursor = $_GET["cursor"];
$url = 'index.php?cursor='.(int) $iCursor;

if ($_POST["cancel"]) {
header("Location: $url");
}

The new URL is supposed to be:
http://localhost/index.php?cursor=2

but it showed up like this:
http://localhost/index.php?cursor=0

I've tried using sessions variables as well, but the value of the cursor's still 0.

Do you guys know what happened?

How To Pass Variables To PHP Binary (CGI)?
My system use to run PHP as an Apache module. And I pass in variables like this:
http://www.somesite.com/somefile.php?IDvar=1

Now my system runs PHP as a CGI. So I am running the same script like this:
/usr/local/bin/php /somepath/somefile.php

How do I pass in the variable IDvar and value 1?

Can't Pass Variables By URL On Localhost
I'm developping on localhost (127.0.0.1). When I try to pass parameters from one page to another using the standart way (URL), I just can't retrieve the values. In fact, the isset($varname) returns false. Code:

Pass Variables To Functions
In php i've found that I cant seem to access global variables from within a function. Is there a way to access variables in a function that are in the same scope that the function is??? Can you make a variable global or something? How does that all work in PHP, is there a doc somewhere to explain? Can I define a global within a function in php?

How Do I Pass Variables On A Location
i have a script which creates 2 variables which then does a redirect to a page which then uses a query using the two variables. But i was wondering how to get the code to pass across the page... Code:

Pass Variables Via Include Command?
I've been trying to put amend a variable to the end of an include statement, but each time I do this, the variable isn't passed.

For example:

Pass The Variables In The Form Of Sessions
If I have something like this how can i pass the variables
in the form of sessions to another page, where i Can calculate based on the products selected, very much like a shopping cart! PHP Code:

Pass Variables To Php Include File
I'm working on using an include file that is set up all good to go for an image gallery. The one thing I need to change though, is the path. My code is simple enough using the inculde PHP Code:

Pass Upload Page Variables
As I sure will become obvious with the asking of this question, I am new to
programing....

I have copied and pasted my way to a successful file upload page and have
built some rather ugly if elseif loops that read the file and extract the
needed data from it. While the data is being parsed from the uploaded file
a string variable is being built that holds some details of the process.
All of this happens when the user clicks the upload button on the form. Now
when all this code is finished running, I ASSUME the page reloads, because
my string variable seems to be empty. So, my question is how do I keep this
variable so that I can print it to the form when the process is finished?

How Does One Pass Array Variables Between URLs?
I would like to pass array variables between URLs but I don't know
how. I know its possible with sessions, but sessions can become
useless if cookies are disabled. I have unsuccessfully tried using
post and get methods.

Pass Variables To A Background Process.
I know how to start a process in the background, but how do I pass variables (from the calling script) to the background process?

Getting The Server To Pass Variables And Not The Client Browser
I have a page on my site that has a form for people to include their name and e-mail that I need to send to another site to save to a database.

The receiving/action page will then give a response depending on the point of failure or if the send and storage was successful.

Seems simple enough, but I need to include a use an id and password with the information for the third party to accept the info.

I can't include these as hidden form fields, as you could see them in the source.

I can post the inputted variables to a second page and add the sensitive variables before using the header function in php to call up the third party site, but I can only use query string from there to pass the variables over, which will of course expose the details I was trying to hide.

The info has to be passed, there's no db option. Other people have supposedly written functions that POST the info on from the second page so it's not part of the query string, which would be an acceptable solution, but I can't seem to figure out how to do that.

The ideal would be for the php page to send the users info & the sensitive info to the server, wait for the response, interpret it and write to the page the result.

Hide GET Variables --> Pass Values Using Session
I have a php file which lists some records. On this list, the records
can be sorted on different columns. currently the sort column and the
direction of sorting is passed using GET values, this means the user
clicks the column name (which is a link) so the new sort column and
direction is passed to the script

<a href="main.php?page=news&sortfield=title&sortorder=asc">

now my question is, if it's possible to hide those values, so they
don't appear on the url, but sorting should work anyway. This means
that

1. when user clicks on column, the new sort order has to be set
2. page has to be reloaded, so new sort order gets displayed.

I'd like to do this using sessions, but I don't know how to update a
session value, when clicking on a link wihtout using GET values...

How Do I Pass Constructor Variables To An Assembly Using DOTNET?
How can I pass a necessary parameter while instantiating an object from a .NET assembly using DOTNET in PHP 5?

The sample code that came with the .NET assembly shows how to do this is with VB and C#:

VB: Dim transaction As New Paymentech.Transaction(RequestType.CC_AUTHORIZE)

C#: Paymentech.Transaction(Paymentech.RequestType.CC_AUTHORIZE);

I've tried the following using PHP:
$transaction = new DOTNET("ptDotNetSDK20","Paymentech.Transaction(CC_AUTHORIZE) ")

and

$transaction = new DOTNET("ptDotNetSDK20","Paymentech.Transaction(RequestType.CC_AUTHORIZE) ")

and even

$transaction = new DOTNET("ptDotNetSDK20","Paymentech.Transaction(Paymentech.RequestType.CC_AUTHORIZE) ")

and each time get errors "Failed to instantiate .Net object". I've even tried enclosing the parameter in single quotes, with no improvement.

If I leave out the parameter and just try:
$transaction = new DOTNET("ptDotNetSDK20","Paymentech.Transaction")
I am able to create the transaction, but am then told "Transaction Object is invalid" when I later try to use it, which makes sense since I didn't create it with the necessary parameter in the first place.

$_SESSION Requires Refresh To Pass Variables To (jp)graph File
I cannot figure out why my graphs will not accept $year variables defined by a form. The first time I send the form the $year variables passed to the graphs are the old $_SESSION versions but if I refresh the browser once on the output page, everthing is fine.

Preg_replace Call Funtion And Pass Variables Inside Class
I have wasted almost two days for this, but can't figure out whats wrong with it.

I have class with functions. The problem is that when I have a preg_replace in a function, and it calls other function in that class, I can't pass my variables to that function.

Weird thing is that, it works fine, if the function that I call is not in a class.

The preg_replace is guite ugly, but it works =).
Idea is to parse string where are some url-tags and convert them to a href links, with some addon features like: link-http-check and word-chopping so it ain't too long to mess up with strick layout.

The function which has the preg_replace inside of it, PHP Code:

Pass A Querystring Through <a Href="mailto:xxxx .... Using PHP Variables
I'm trying to send a link with a querystring as the body of an email
message. My HTML syntax looks something like this:

<a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print
urlencode($url) ?>">Send an Email</a>

(I've had to URLENCODE the variables first, and it works. If I don't
do so, then it doesn't work.)

The problem occurs when it is time to display the encoded version. It
automatically translates it into the appropriate URL in certain email
clients (like OUTLOOK) but leaves it encoded in others (like
Groupwise).

Basically, I would like to be able to email a link in the body with
querystring in such a way that it appears on ALL email clients. I've
tried lots of things, but nothing seems to work.

Can't See My Post Variables
I work on an application which runs on our Intranet network, so security it's not a big issue, and my phpinfo() get me register_globals on (php 4.1.2 on a Debian system).
The problems is that I can't see my post variables (only with $_POST) and I don't get it . Is there another setting wich overrides php.ini and stop my register_globals ->on to behave properly ?

With Variables And POST
On my online order form, I need to send a few variables to my
credit-card processor. These variables are for non-secure customer
comments, and will be sent through the usual metod, i.e.,
<form action="https://orderpage.ic3.com/hop/orderform.jsp"
method="post">

However, one variable is a text-area box for a detailed customer
comment, and this variable can get pretty long. But my credit-card
processor has a 256 byte maximum length limit for all POSTed
variables. However, I can add as many of these 256-byte variables as I
like.

So how can I accomplish this in the most simple, efficient, and
elegant manner? How can I break up the text-area vaiable into 256-byte
pieces and then send these variables via POST along with all of the
other form variables which will be POSTed through the usual HTML
means?

POST/GET Into Variables
how does this look? should this by me calling ... myforms = new
forms(); work by turning all key/value pairs for both get and post
into variable names of the same name as the get/post key, and the
variable values as the values from the post/get?

class forms {
// Some stuff
var $MyPosts;
var $MyGets;...

Post Cookie Variables
I have a page that include on the top the result of a cookie (i come form a previous page with some inputs) in the second part of the page a form with name surname email etc etc
On submit all the information (cookie + form) are sent by email...
my problem is this: in the email doesn't appear the cookie values
i try to create in the form tab a hidden fiel d with this value

<input name="NewEoc" type="hidden" value="<?php echo $COOKIE['NewEoc'] ?>">

Variables Past By Get And Post
I'd like a generic include that goes at the top of all pages that mysql escapes the variables past to the script. Is there a way to refer to the each of the variables past, for example (in pseudo code):

for(each $XX in (list of get/post variables)) {
$$XX = mysql_escape_string($$XX);
}

Empty Variables And 4.21 (POST/GET)
With global variables set to on, I always had the following in my script to make sure variables had a default value:

if (empty($var)) {
$var = 1;}

Now with 4.21, I changed it to:

if (empty($_GET['var'])) {
$var = 1;}

The problem is sometimes I use GET and sometimes I use POST. With global variables on it didn't matter. Now it does. Is there a way to do this? When I try if (empty($_GET['var']) || empty($_POST['var'])), it doesn't work because one or the other will always be empty at any one time.

Processing GET And POST Variables
Below is a function adapted from one found in phpMyEdit.class.php
http://platon.sk/projects/release_l...hp?project_id=5
phpMyEdit is a form generator for PHP/MySQL.

I think this function works great, especially for forms where data is
redisplayed due to failed validation of user input. I wonder what the
opinion of other PHP users would be.

function get_cgi_var($name, $default_value = null)
{
// From the phpMyEdit project
// Usage: $name = get_cgi_var('name');
static $magic_quotes_gpc = null;
if ($magic_quotes_gpc === null) {
$magic_quotes_gpc = get_magic_quotes_gpc();
}
global $HTTP_GET_VARS;
$var = @$HTTP_GET_VARS[$name];
if (! isset($var)) {
global $HTTP_POST_VARS;
$var = @$HTTP_POST_VARS[$name];
}
if (isset($var)) {
if ($magic_quotes_gpc) {
if (is_array($var)) {
foreach (array_keys($var) as $key) {
$var[$key] = stripslashes(trim(strip_tags($var[$key])));
}
return $var;
} else {
$var = stripslashes(trim(strip_tags($var)));
}
}
} else {
$var = @$default_value;
}
return $var;
// If data is displayed/posted using htmlspecialchars($var)
// return @$HTTP_POST_VARS ? html_entity_decode($var, ENT_QUOTES) :
$var;
};

$name = get_cgi_var('name');

POST Variables And Sockets...
I have a server that uses Cpanel, and my mail server is Cpanel's cppop. I am trying to create an email address. With an older version of Cpanel, you could use this command line through sockets.

GET /frontend/x2/mail/doaddpop.html?email=emailaddress&domain=mysite.ca&password=emailpassword&quota=10 HTTP/1.0
Authorization: Basic $pass

That worked just fine because email addresses were created through GET variables. Now, they have changed it to POST variables. Now, I need to create an email address, while faking the following post variables:

email
domain
password
quota

I know I need to use sockets, and pass the POST variables, but I have no idea how to.

Passing Variables With POST
I have a file named login.php that basically just checks if a username and password are in a MySQL database. If they aren't then it shows access denied. If they are then I want to pass the $name and $pass to project.php in a different directory. Code:

Looping Thru POST Variables
I need to know how to loop thru the variables my script receives from a form with action=post. I need to build a list of only those variables that comes from my checkboxes.

POST Variables Not Coming Through
For some reason, at random posts, the post variables don't get thru to
the server. For example, if there is are two text fields: name and
email... (I have register_globals on)... When I try to update the
database with a query and use $name, $email, the $name is missing or
the $email is missing. I am building an intranet application and all
the 20 or so clients run IE. This happens very rarely. Something like
once in 100 updates.

But I can see this in the log files as update contact set name="",
email="asda@pol.com" where contact_id=918. Notice the name field is
blank. I have JS checks in the client side which does not allow blank
name field..

Is this an IE random error? How do I get over this?

POST Variables From Programs
we are trying to make a program in C++ that will comminicate with a PHP script. But we dont know how to get the variables from the program. We got it figured out with perl/CGI, but PHP seems to be a better way to connect to SQL server. On PHP the GET works, its easy, but it's not secure enough. I need informtion on what headers does the PHP require to get the POSTed data from a program.

Sending Variables As POST?
I am currently trying to send information to another page using the POST method. Unfortuantley I can not find any information on how to do this. Currently I am trying

Header ("Location: newpage.html?var=test&var2=test2");

Obviously this re-directs with the variables, but they are send using GET. Not what it need. Any ideas on how to post these variables to the new page?

Apache/PHP Post Variables
I'm working with someone on a PHP project. The other person is doing
testing of scripts on their personal machine using Apache as a web server.
The production server and the one I'm using are both using IIS.

This other person reports that in their PHP scripts when tested with Apache,
form variable sent via the POST method are not "coming through." (This is
even using the "long method" of specifying them as $HTTP_POST_VARS['x'].)
These same scripts work fine on the the IIS machine (the POST variable come
through).

I've looked online to see if I can find out if anything special must be
specified in the Apache configuration to enable the POST method, and
although I found other people posting similar problems, I saw no reference
to a solution.

Not Catching The Post Variables
For some reason my PHP script is not catching the post variables that should be being sent by this form. Code:

Forward POST-variables
I have a form which should be submitted with either of two actions. Tried with javascript but this seems unreliable. Now looking at php and a processor page as the action of the form (process.php) which then sends the user to the different actionpages...can't figure out how to forward the post-variables to the different pages. Code:

Post Variables From Header Redirect
I'm using header to redirect the browser to another page and in the url I've added ?var1=value1&var2=value2 to pass some argument as get to that script, can I pass in some way, arguments as post in this case ? may I do it in both methos at the same time ?

Passing Post Variables Using Fopen()
I'm trying to pull data from a website and read it into a file the I
can parse. I've done the before to site without post variables but I
can seem to get my statments to work with the post. Can someone help
me out?below is the code I have so far.

$url="www.somesitethatneedspostvariables.com";

$postdata = http_build_query(
array( 'postvarname1' ='value1',
'postvarname2' ='value2'
)
);
$opts = array('http' =>
array(
'method' ='POST',
'header' ='Content-type: application/x-www-form-
urlencoded',
'content' =$postdata
)
);

$context = stream_context_create($opts);
$file = @fopen($url, "r", $content) or die("Connection Error, Please
contact Webmaster ERROR CODE=0xDEADBEEF");

Get Unknown Number Of Variables From POST Or GET.
I am trying to create a page that redirects users to an advertiser's page. The reason for the redirect is statistics about who clicks where.

The situation is simple when I only need to redirect them to a page, but some of the ads on my site include forms which put data in either POST or GET and I need to know how to allow my redirect page to take that data from POST or GET, whatever that data is, and pass it on to the page that the data were intended for.

I think that once I get the data I can simply create a hidden form, on the redirect page, with the data from POST or GET already in it. However, I don't know how to get an arbitrary number of variables from POST or GET.

How To Loop Through POST Variables And Contents
I am looking for a standard way/function to loop through all POST variables
and their respective contents to update a database record.

Here's my ideal to pass a function and it update:
session variable - "ID" - that holds the record ID to update
$_POST or $HTTP_POST_VARS

The function would update the $_POST vaiables of the ID record with the
$_POST variable's contents.

Get/Post Variables Not Showing Under Windows
I'm quite rusty with PHP and have a little issue. A script transmit parameters to itself through a simple form. It works fine when I run it on aproduction server (Linux+Apache+PHP4). When I run the same script on my development machine (Win2K+Apache2+PHP5) the submited variables
don't show.

Here's some simplified code:

<HTML>
<BODY>

<?php
print_r ($_SERVER);
print_r ($submit);
switch ($submit) {
// ...
}
?>

<FORM METHOD=Get>Display content of:<BR>
<INPUT TYPE=submit NAME=submit VALUE=APACD1>
<INPUT TYPE=submit NAME=submit VALUE=APACD2>
// ...
</FORM>

</BODY>
</HTML>

PHP Not Populating Form Variables Passed Through POST Or GET
I"m running:

Windows Xp SP2
Apache2
PHP5
MySQL4

Everything seems fine and dandy, and I can do scripting on server side, but for some reason I cannot get data from a form to be put into a variable.

I have a simple form in an html page which submits, and in the php script that handles the input, none of the data in the form is going into the variables.

My php.ini file does have all the GPC's in place(ie variable_order, the way they get processed).

How To Process Some Variables, Then Place Them Into POST And Redirect?
I'd like to do the following in PHP. Is there a way?

Someone submits a form with data. I want to process the data, then once I'm done with it, take two of the variables, make them post variables and basically redirect the browser as if the user pressed the submit button with data filled in.

The variables can't appear in the url.

How Do You Parse Post Variables To A Popup Window?
I know this isnt really a php question but can anyone tell me how
you parse post variables to a popup window, here's my code so far, im
trying to pass the value entered into a radio button:

<head>
<script language="JavaScript" type="text/JavaScript">
var win= null;
function NewWindow(mypage,myname,w,h,scroll)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+','
settings +='width='+w+','
settings +='top='+wint+','
settings +='left='+winl+','
settings +='scrollbars='+scroll+','
settings +='resizable=yes'
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>
<form name="answer" action="result.php" method="post">
<input type="radio" name="group1" value="Milk"> Milk<br>
<input type="radio" name="group1" value="Butter"> Butter<br>
<input type="radio" name="group1" value="Cheese"> Cheese<br>
<input type="submit" name="submit" value="submit" src="result.php"
onClick="NewWindow(this.src,'name',âÆ',âÆ','yes');retur n false" >
</form>
</body>

Post Variables After Java Sort Are Lost
I have an HTML table that is being constructed from a MySQL table and
displays a form that includes a check box on 1 of the fields on the form for
each record. I have included in this PHP program a javascript routine called
sorttable.js which is something I found on the internet for sorting tables
and works quite well. The HTML table includes a check box on each record so
the user can select certain records for passing to the next process. This
works fine unless I sort the table on some column and then the POST
variables are lost. When I run the following code there are no POST
variables that will echo except the submit button.

foreach ($_POST as $varName =$value){
echo ($varName . " = " . $value);
}

However, if I don't sort the table the POST variables will be echoed for
every record in the table. I'm not sure why this is happening or how to go
about solving it. When I check certain records on the form and then sort the
table the checks themself don't disappear only the POST variables do. This
prevents me from looping thru the ARRAY to determine the value of the POST
check box for each record to see if it was checked. If I run the above code
but don't sort it I will have several hundred POST variables (several for
each record).

Could someone give me an idea on how to solve this or offer some sort of
work-around?

Forward To Page Alongwith Variables In POST
How to forward a page to another page alongwith the parameters passed into it

I mean I have page a.php
which is called with some parameters in $_POST and I require to pass these to another page with same variables in $_POST

Passing Variables In Frame Page By Post Method
Is it possible to send  variables by post method through a submit button to a frames page, and have all 3 pages in the frame pick up the variable using the $_request[var] ?In other words, I click on a submit button. in form action method call index.php the index page has a top, main, and a left frame.how do i get each one of those to receive the variable, when i can only sendit to one page? or is it possible to send it to more than one page, but only action to one page?

Problems With Error Checking / Control Of POST Variables
I have a small form that on button press submits to a PHP file for further
processing into a database. I have to change the script as it allows
blank / nothing to be submitted to the database. The intention is that if
any of the two form fields are blank (empty) then the page is resent
stating that they have to fill in all the fields to post (to a database).

If I deliberately leave the fields blank and submit the form, querying the
database shows that both fields are zero / null - so nothing was entered in
to the database.

However, if I use an echo command to see what is going on (before the data
is entered into a database) I get the $TheName field with a "1" and the
$TheComment field with an unknown entry (it doesn't echo anything to the
screen - but it's not empty).

The code I've used to test this is:

$TheName = $_POST[gbName];
$TheComment = $_POST[gbComment];

if (($TheName = NULL) or ($TheComment = NULL))
{
echo 'Quick error check running:<BR>'
echo "Name: $TheName<BR>";
echo "Comment: $TheComment";
exit;
}

This does NOT execute as these fields are not empty. It only runs if I
change to:

if (($TheName = !NULL) or ($TheComment = !NULL))

Which is pointless as it will always execute with genuine entries.

Using the amended code below:

if (($TheName = !NULL) or ($TheComment = !NULL))
{
echo 'Quick error check running:<BR>'
}

echo "Name: $TheName<BR>";
echo "Comment: $TheComment";

I get the result that both the echoed lines are displayed as blank (no
"1").

Function Inside A Class Function Dont Pass Variables...
Im using xajax class, and i just made a custom class called mantenimientos that use objects of this xajax class. Something like this:

class mantenimiento
{
  public $titulo;
  public $ajax_sRequestURL;

  function __construct($titulo,$ajax_url){
    $this->titulo = $titulo;
    $this->ajax_sRequestURL = $ajax_url;
  }
  function exec_ajax(){
    //Here i can use $this with no problem
    $xajax = new xajax($this->ajax_sRequestURL);
    $xajax->registerFunction("call_fun");
    //I have to do this to have acces to the class itself when im inside a function
    global $mant ;
    $mant = $this;
    function call_fun(){
      //next line give me access to the mantenimiento class properties.
      //I havent    found other way of doing it.
      global $mant;
      $objResponse = new xajaxResponse();
      $objResponse->addAlert('XAJAX CALLED:'.$mant->titulo);
      return $objResponse->getXML();
  }
  $xajax->processRequests();
}

My problem is that $mant->titulo lost it value when i im inside the funciton, but only when that value comes from other var.

for example:

if i do this:

$mant = new mantenimiento('This is the title','index.php');
or
$titulo = 'This is the title'
$mant = new mantenimiento($titulo,'index.php');


When i execute the xajax_call_fun, it shows an alert box with the text "XAJAX CALLED:This is the title"

but if i do something like this:

$titulo = gettitulo_from_database();
or
$titulo = $_POST['titulo'];

The alert box show the mensaje with out the value of the $mant->titulo

Im getting crazy with this....!


Copyright © 2005-08 www.BigResource.com, All rights reserved