...

View Full Version : HELP form processing



mcoelho123
06-09-2006, 12:25 PM
HI guys i have a form that is actions is php:

<?php echo $_SERVER['SCRIPT_NAME']; ?>


but i have a variable $send in url

?send=2

how can i do to process the data form in the same page with ?send=n? I tried this



<?php echo $_SERVER['SCRIPT_NAME'] . "?send=" . $_GET['send'];?>


But dont work.

Thanks in advance

harsh789
06-09-2006, 02:03 PM
Try this,


<?php echo $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];?>

mcoelho123
06-09-2006, 02:06 PM
thank you very much
Its working



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum