POST variables
Moderator: General Moderators
POST variables
hi there...
how to transmit POST variables without sending them by adrees bar of the browser?
thx
how to transmit POST variables without sending them by adrees bar of the browser?
thx
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
POST variables aren't sent via the URL? Are you trying to not send variables in the query string, like http://www.mysite.com/index.php?var=value&var2=value.
Mac
Mac
yes, i wish to not sent variables in a query string....how to do this? is possible?twigletmac wrote:POST variables aren't sent via the URL? Are you trying to not send variables in the query string, like http://www.mysite.com/index.php?var=value&var2=value.
Mac
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
set your form to use POST instead of GET
Code: Select all
<form action="foo.php" method="POST">- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
illuminationed
- Forum Newbie
- Posts: 8
- Joined: Fri Nov 18, 2005 10:13 am
-
illuminationed
- Forum Newbie
- Posts: 8
- Joined: Fri Nov 18, 2005 10:13 am
oo soz just re-read your message:
<?php
session_start();
//READ DATA FROM A SESSION
$_SESSION['CHANGEME'] = $CHANGEME;
?>
<?php
session_start();
//ADD DATA TO A SESSION
$CHANGEME = $_SESSION['CHANGEME'];
?>
Hi! Just re-read your message and realised what you meant. In every document you must have "session_start();" where you want to read or add variables to a session but is only needed once!
This is exellent for making a members section on a website
If you have any more problems just send me a message
OR
Go to http://www.php.net and look up the session function
<?php
session_start();
//READ DATA FROM A SESSION
$_SESSION['CHANGEME'] = $CHANGEME;
?>
<?php
session_start();
//ADD DATA TO A SESSION
$CHANGEME = $_SESSION['CHANGEME'];
?>
Hi! Just re-read your message and realised what you meant. In every document you must have "session_start();" where you want to read or add variables to a session but is only needed once!
This is exellent for making a members section on a website
If you have any more problems just send me a message
OR
Go to http://www.php.net and look up the session function