Joao Andrade wrote:
Hey everybody,
That's lame but I've been looking for a while and found nothing.
What are the ways to pass variables to another script? As far as I'm
concerned there are POST and GET variables, and I know they can by set via
HTML forms, but I only know how to pass
[snip]
Simple one for anyone who wants to help out a novice. How do you pass a
variable from one page to another?
[/snip]
Through either a $_POST or a $_GET variable array.
onepage.php
form action=another.php method=POST
input type=text name=myvariable
input type=submit
/form
another.php
On Tue, Oct 14, 2003 at 10:20:44AM -0500, Jay Blanchard wrote:
: KB [EMAIL PROTECTED] asked:
:
: Simple one for anyone who wants to help out a novice. How do you
: pass a variable from one page to another?
:
: Through either a $_POST or a $_GET variable array.
And cookies and sessions and
[snip]
: Simple one for anyone who wants to help out a novice. How do you
: pass a variable from one page to another?
:
: Through either a $_POST or a $_GET variable array.
And cookies and sessions and database backends oh my!
[/snip]
Aww Genethat is for intermediates, not novi!
--
Hi,
You need to use sessions. Please refer session handling functions in the
manual. Having said that it's a bad idea to put username in a session.
You need to have some kind of association between session ids and
username's in app. The most common way this is done is with a two column
table.
Rashini Jayasinghe wrote:
Hi,
I want to pass a variable between three pages. I tried to get a username from the first page through a form. Use that username in a select statement in the second page to query a table.Everything is fine up to that point. now I want to pass the same username to the
Jay Fitzgerald wrote:
I have been searching for an answer to this for a couple of hours now
and cant find anything. I believe that there is a secure way of doing
this but I think my brain is having a momentary lapse...
I have these variables:
$eventid = 1;
$age = 15;
Is there a way to pass
What I do in these cases is either having PARAM name=movie.swf?var1=text
...
Or use a file (something.php) which spits text like var1=var2=.
Flash can read that file and get the variables
_
Marios Adamantopoulos
Senior Developer
Tonic
+44 (0)20 7691 2227
+44
thanks for your reply
What I do in these cases is either having PARAM name=movie.swf?var1=text
the first thing you mention is exactly the problem I'm having since the
file.swf?var=xxx
makes iexplore reload it
Or use a file (something.php) which spits text like var1=var2=.
Flash can
On Sat, 1 Feb 2003, Beauford.2002 wrote:
Hi,
Is there a way to pass a variable to a PHP script without using a form? I
want to put several links on my main page that when clicked on goes to a PHP
script - depending on what link was selected, will determine what part of
the PHP script gets
Perfect. Thanks.
- Original Message -
From: Philip Olson [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 2:22 PM
Subject: Re: [PHP] Passing Variables
On Sat, 1 Feb 2003, Beauford.2002 wrote:
Hi
On Sunday 19 January 2003 03:50, jennifer wrote:
hi, i'm hoping someone can help me out here - im trying to pass a variable
from a string in the href tag, however my sql breaks when i put a var in
the statment. when i replace $foo with a number, the page works fine. can
someone please tell me
hi, i'm hoping someone can help me out here - im trying to pass a
variable
from a string in the href tag, however my sql breaks when i put a var
in
the statment.
when i replace $foo with a number, the page works fine. can someone
please
tell me what im doing wrong?
here is the error i get:
Hi,
Sunday, January 19, 2003, 5:50:51 AM, you wrote:
j hi, i'm hoping someone can help me out here - im trying to pass a variable from a
string in the href tag, however my sql breaks when i put a var in the statment.
j when i replace $foo with a number, the page works fine. can someone please
On Wednesday 11 December 2002 07:56, Stefan Hoelzner wrote:
Hi folks,
surely this question has already been answered many times before in this
ng, but nevertheless:
So why don't you search the archives to read the answers!?!
I want to pass variables from one .php to another
.php script.
If they are static you could store them in another php file and include
them.
HTTP is stateless, meaning one person can go from one page to another or
log out in between all of this. It also means there is no authentication
for users, you can not prove that one person is the same person the
On Tue, 10 Dec 2002, Stefan Hoelzner wrote:
Hi folks,
surely this question has already been answered many times before in
this ng, but nevertheless: I want to pass variables from one .php to
another .php script. But I do not want to use either the
Stefan Hoelzner wrote:
nevertheless: I want to pass variables from
one .php to another .php script. But I do not want to use either the http://localhost/target.php?var1=testvar2=test2 nor
the
POST method. I would like to pass over general variables like usernames and
Sessions. The data is
1. the only other ways to pass things around would be in sessions, or by
setting a cookie on the user's computer... i hate the latter, and would
prefer the former, but would NEVER carry things like a MySQL uname and
password around in cookies or sessions. cookies, sessions, and even post
get
On Sunday 24 November 2002 03:42, Craig Edgmon wrote:
I am sure this question has been answered, but there is a ton of data to
sift through on this.
By asking again and having people answer again you'll be generating MORE data
for the next person who asks to sift through.
I am running Apache
Try looking into the manual for register_globals
Marco
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com
On Sat, 2002-11-23 at 14:42, Craig Edgmon wrote:
I am sure this
Is your register_globals setting set to Off? This is the default setting in
v4.2.x upwards.
Rich
-Original Message-
From: Craig Edgmon [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 11:43
To: [EMAIL PROTECTED]
Subject: [PHP] Passing Variables
I am sure this question has been
Just suggestion but why not use md5($password) and then send the result of
that in your GET?
Adam
On Wed, 21 Aug 2002, Mark McCulligh wrote:
I have two server. One running PHP/Linux the other running ASP/2000.
The user logins into the PHP server and session variables
: Wednesday, August 21, 2002 1:30 PM
Subject: Re: [PHP] Passing variables between servers
Just suggestion but why not use md5($password) and then send the result of
that in your GET?
Adam
On Wed, 21 Aug 2002, Mark McCulligh wrote:
I have two server. One running PHP/Linux the other running ASP
Hi !!
I know you said you cont want to use cookies ... I suggest that place
encrypted data in a cookie and in the win2000 machine place a php script
that read the data in the cookie, uncryptit and some how set the info
for the asp script, a plain text file or something ...
I hope this is
[snip]
I thought about encrypting the whole querystring then decrypting it on the
other server, but I wanted to keep the address bar clean. I wanted the user
not to know they just got passed. If all a sudden there was a lot of data
in the address bar they will wonder what it is for.
[/snip]
MD5 is a one-way hash. There is no way to get information back out of it.
If he keeps a copy of the hash locally to comare instead of the original
password, this is still as vulnerable as using the original password in this
case. The only thing it would protect from is making available the
www.SykesCanada.com
[EMAIL PROTECTED]
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Mark McCulligh' [EMAIL PROTECTED]; 'Adam Williams'
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 1:40 PM
Subject: RE: [PHP] Passing variables between servers
[snip]
I
Monty wrote:
This is probably more of an HTML question... Is there a way to pass
variables to another page via POST instead of via the URL?
Yes.
form action=another_page.php method=post
... (form fields here) ...
input name=button_name type=submit value=Button Text
/form
--
PHP General
Because the session is not being started on the second page. to be able to
get the contents of a variable that is in a session environment, you must
first initiate sessions with the call session_start(); even if that is all
you do before referancing the varialble.
so, add session_start(); just
On Friday 14 June 2002 22:16, Don wrote:
Hi,
Does anyone have a PHP method of passing variables from a form to another
page without using sessions or encoding within the URL?
I remember someone mentioning a class but I lost the reference. My site
uses PHP 4.0.1Pl1
Use POST.
--
Jason
Plain and simple...you have four options: COOKIE, GET, POST, SESSION.
So, load all of your data into a cookie or load it into hidden elements in a
form and submit it somewhere...
Okay?
---John Holmes...
- Original Message -
From: Don [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
On Thursday 23 May 2002 22:37, Jay Blanchard wrote:
[snip]
me.php
?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql=select COUNT($this) from $table group by $this;
?
[/snip]
?php
$db=mysql_connect('localhost','','');
[snip]
?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql=select COUNT . $this . from . $table . group by . $this . ;
?
But that results in what looks like an invalid sql query!
[/snip]
My bad... I didn't test, should be...
$sql=select
[snip]
me.php
?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql=select COUNT($this) from $table group by $this;
?
[/snip]
?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql=select COUNT . $this . from . $table .
What exactly goes wrong? Indeed, you _should_ have $_POST[testvar]
available in the next page... The only problem I see is that you first
echo the input and only then do you start the forms... which is an HTML
problem, not a PHP one.
Bogdan
baldey_uk wrote:
Hi sorry to annoy you AGAIN, but
On Friday 10 May 2002 07:41, baldey_uk wrote:
Hi sorry to annoy you AGAIN, but i cant seem to get it working i think
its something to do with the order that i put things in:
#end of html and start of php script
?php
#Take the Variables from enterdetails.php that are posted from an
Try $_GET[entry_id] or $HTTP_GET_VARS[entry_id], depending on your
version of PHP.
---John Holmes...
-Original Message-
From: Mark Gallagher [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 28, 2002 4:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variables to scripts
(yes,
It still works, the value is in $_GET[db]
---John Holmes...
- Original Message -
From: Smileyq [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 6:09 AM
Subject: [PHP] Passing Variables with register_globals Off?
I've noticed with the release of PHP 4.2.0 that
Hi Matt,
Looking for help on how to activate the automatic passing of variables -
think i need to change something in my php.ini file maybe?
got scripts that work fine on one server, but i've recently got a new
virtual server, and it won't pass variables though - example script..
Your
February 2002 12:15
To: matt stewart; [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables - php.ini?
Hi Matt,
Looking for help on how to activate the automatic passing of variables -
think i need to change something in my php.ini file maybe?
got scripts that work fine on one server, but i've
Matt,
thanks a lot!
works fine now i've changed register_globals.
=great!
just out of interest, what is the 'newer' way?
is it using sessions etc, or something else i don't know about?
or should i rtfm? ;)
Yes it is quicker for me to say RTFM reference, although I wonder if it isn't
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 14-01-02 at 13:01
* Imar de Vries said
Hi all,
Hello!
at this moment I am working on a script that calculates standings of our
online racing competition. In order to do that, I have to connect to a
database on a remote server.
- Original Message -
From: Imar de Vries [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 12:53 PM
Subject: [PHP] Passing variables with include()
Hi all,
at this moment I am working on a script that calculates standings of our
online racing competition. In
Does http://www.someremote.server/calculate_drivers.php; contain a
function? If so, you may have to declare $serie_id as global within it.
-Original Message-
From: Imar de Vries [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 5:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP]
-Original Message-
From: Imar de Vries [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 5:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing variables with include()
at this moment I am working on a script that calculates
standings of our online racing competition.
One way to pass a variable by clicking on a hyperlink is to make the
HREF attribute of the anchor tag into a querystring with the variable
that you want to pass.
If you want to pass the variable $user_id to the next page, with a
value of 289, here is how you could do it:
a
PHP is server side. The link would have to load another page, or reload the
same page with the function triggered by the link.
Maybe this is something you want to do in Javascript?
Miles
At 05:07 PM 1/10/2002 -0500, Artie Ball wrote:
Hi all,
Could anyone please tell me if there is a
Try this in your form ...
input type=hidden name=login value=$login/
Can someone tell me how to pass a variable in the url?
I am using a form and calling a handler file as its action, as in:
FORM NAME=update_list ACTION=handler.php?login=$login METHOD=POST
I've also tried single quotes
Thanks for the advice... just had to remember that the variable had to be in
php tags, as in:
input type=hidden name=?echo $login?
Thanks for the help, problem solved.
Steve.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
sunny AT wde [EMAIL PROTECTED] wrote:
i've written a form, which passes value to a ph script to insert them
into mysql. from there on, i forward onto another page, but using :
header(Location: http://www.foo.com/foo2.php?id=4user=foo;);
now i really don't want to have the url on the next
Ok, but how do I use post when using Header??
I would like to have a form, but I don't know how I would make the
script automatcially re-direct in a form... becase I know how to use
form variables that way.
But all I can think of is using header, yet that displays the
variables as its like get
Included files share the same global symbol table as the parent file. So,
simply do:
$file = somefile.txt;
include counter.php;
And by the way, please don't use $file. It makes no sense. Just $file.
-Rasmus
On Tue, 18 Sep 2001, Andrew V. Romero wrote:
I was wondering if it is possible to
I think, the built-in session management can solve your problem:
http://www.php.net/manual/en/ref-session.php
Briefly, you should register your variable into the session and after
reloading the page you can get it back.
peculiarly:
http://www.php.net/manual/en/function-session-register.php
Hello Seb,
Sunday, August 19, 2001, 11:44:59 PM, you wrote:
SF OK I know this can be done like so:
SF file.php4?foo=bar
SF but what if I want to keep the value of foo secret from the user?
SF - seb
I don't know if it's best idea but you can try to encode link with
base64_encode() and
This function that matt sent to automatically write hidden inputs is
awesome. it works great. I am only using the first function.
It's a great solution.
thanks
Original Message Follows
From: maatt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables from forms
INPUT TYPE=HIDDEN NAME=name_of_variable VALUE=value_of_variable
-Original Message-
From: Tim Olsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variables from forms to the same page
repetatively
People,
I have 4 forms
On Tue, 17 Jul 2001 15:41, Tim Olsen wrote:
People,
I have 4 forms in four seperate html pages included directly (no links
to includes) in the same .php file, i have it so all the form actions
is php.self, so when each form is submitted it goes on to display the
next form in line, using if
PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tim Olsen [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables from forms to the same page
repetatively
Date: Tue, 17 Jul 2001 16:13:41 +0930
On Tue, 17 Jul 2001 15:41, Tim Olsen wrote:
People,
I have 4 forms in four seperate html
information you need to be looking into
encryption, if not then why sweat the hidden fields?
Sheridan
- Original Message -
From: Tim Olsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 1:07 PM
Subject: Re: [PHP] passing variables from forms to the same page
], [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables from forms to the same page
repetatively
Date: Tue, 17 Jul 2001 16:13:41 +0930
On Tue, 17 Jul 2001 15:41, Tim Olsen wrote:
People,
I have 4 forms in four seperate html pages included directly (no links
to includes) in the same
On 17 Jul 01, at 0:11, Tim Olsen wrote:
So far, I can only use variables on the next page (form) that is written
out. After that those variables have no value. Is there some way to submit
Investigate using input type=hidden form tages - very useful for
passing around additional args
Hi Mark!
On Sun, 08 Jul 2001, Mark Lo wrote:
Hi,
I would like to know. Is it possible to use php to exec a bash script
with variable passing from php to bash. If so how to do this.
either set them in the environment or pass them as arguments.
but before that you man want to type
framea and frameb don't know about each other, but their document and their
window should know both of them.
So, you can use document.framea... and document.frameb... to access each
other's variables.
Also, if these variables are coming from PHP, and if you are using FRAMEs
mostly for looks,
Hey sorry 'M' about my last post...
I was giving you ideas mixed with how to access an IFRAME ;)
anyway to access frames you have to do like:
window.parent.framea.window.document.forma.texta.value =
window.parent.frameb.window.document.formb.textb.value
M [EMAIL PROTECTED] wrote in message
The correct javascript syntax is.
parent.frames[1].document.formb.varb.value =
parent.frames[0].document.forma.vara.value;
-Stewart
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 16:18
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP
I think it works just fine,
maybe you can try:
framea.document.forma.vala.value = frameb.document.formb.valb.value
if this didn't work then change to:
framea.window.document.forma.vala.value =
It worked with me time ago...
M [EMAIL PROTECTED] wrote in message [EMAIL
Hello, sorry this question here (it is not true PHP question), but I use
some variables into PHP scripts and need
pass these variables from one frame to another.
I want pass variable values between frames, these definded via input
hidden tags into form definition.
I have first frame
You can pass variables through the session mechanism.
http://www.php.net/manual/en/ref.session.php
This will require some additional work to get your sessions working
properly, but you probably want to do that anyway at some point. I have
found the session mechanism to be extremely useful so
On Fri, May 04, 2001 at 05:08:30PM -0700, Andras Kende wrote:
Is this is a correct format ???
If you would tell us what you are trying to accomplish and why you think
it doesn't work, we might actually be able to help you.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Of course, I reserve the
header(Location: http://something.foo.bar.com/page.extension?var1=etc;);
-Original Message-
From: Dean Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 1:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing variables to another page - newbie
I have an order form that is
Your location header should be a fully qualified URL, just like you had
typed it into your browser.
- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
-Original Message-
From: Dean Martin
;);
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Dean Martin [EMAIL PROTECTED]
Sent: Sunday, May 06, 2001 11:01 AM
Subject: RE: [PHP] Passing variables to another page - newbie
header(Location: http://something.foo.bar.com/page.extension?var1=etc;);
-Original
index.php?fruit=applecolor=greenlang=php
If register_globals setting in php.ini configurations is 'on'
then the following should all work :
echo $fruit; // apple
echo $color; // green
echo $lang;// php
echo
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Passing variables to another page - newbie
also is you want to add more than one variable in the example given you use
the '' Sign
ex with one var:
header(Location: http
Thanks to everyone for the help - unfortunately my problem
seems to be the function I'm using to do the redirecting. header() is
supposed to be the first item passed. What I'm trying to do is use a line
of
code well down into the logic of my script to redirect the user to another
page
Thanks to everyone for the help - unfortunately my problem seems to be the
function I'm using to do the redirecting. header() is supposed to be the
first item passed. What I'm trying to do is use a line of code well down
into the logic of my script to redirect the user to another page along
Previously, Dean Martin said:
Thanks to everyone for the help - unfortunately my problem seems to be the
function I'm using to do the redirecting. header() is supposed to be the
first item passed. What I'm trying to do is use a line of code well down
into the logic of my script to redirect
using POST, Cookies or sessions.
session is the most appropriate way to do that.
php.net/sessions
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Adam [mailto:[EMAIL
Hi
Pass the variable as a parameter (without quotes):
form name="myEditForm" action="edit.phtml?number=?echo $exedit?"
method="post" onsubmit="return validate()"
and then in the next page refer to the variable $number, OR
in the next page just refer to the variable $exedit (which gets posted
Try this:
form name="myEditForm" action="edit.phtml?number=?php echo $exedit; ?"
method="post" onsubmit="return validate()"
This should display ?number correctly (I take it that's the problem).
You may also need to use "return validate();" or "javascript: return
validate();", not too sure
On Mon, 09 Apr 2001 12:08:48 -0400, Curtis ([EMAIL PROTECTED])
wrote:
Hello,
Could someone please tell me where I am going wrong here.
I have an HTML form and I want to past the input from a text box to
the
next page url to connect
to my mysql database.
Here is where I am at now
form
your not putting it in quotes.
echo "
input type=hidden name=people_name value=$people_name
";
change to
echo "
input type='hidden' name='people_name' value='$people_name'
";
quotes are your friend :)
--
Chris Lee
[EMAIL PROTECTED]
""george"" [EMAIL PROTECTED]
Thanks Chris.
George
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Try using an array, such as name[], with NO SUBSCRIPT, to store the chosen
items. That will be passed as a form variable and can be stepped through on
the next page where you can parse step through the array and create the
form. You could probably do this all in the same form, setting
not really sure I understand,
but what I want to do is take the HTML generated in step 3 and place it
between the form tags in the last page where the code is displayed
ie
tdTitle/tdtd mr/stronginput type=radio name=title value=mr checked
mrs/stronginput type=radio name=title value=mrs
Do you mean you want them to be able to say how long a text field should be?
If so, try this:
for ($i=0; $i $fields; $i++)
{
$fieldName = "field$i";
echo "trtdinput type=text name=\"$fieldName\"
value=\"${$fieldName}\" size=\"$size\"\n";
}
$size would be a form
One way:
Pull as much info as you need out of the db, including the email id, then
have a select box or check box if you want which sends the id of the email
you want to delete back to a 'DELETE FROM' sql statement.
No need for cookies that I can see.
Mick
On Sat, 3 Mar 2001, george wrote:
Thanks Michael,
but what I plan on doing is pulling the name,subject and email
address out of the db, then giving the option to view the full message, but
i have had to do this using a form so my code looks like
trform metod=post action=view_enq.phpinput type=hidden name=id
At 15:41 03.03.2001, george said:
[snip]
I plan to add hidden fields for all the information pulled out the db my
question is this how do you pass variables into the next page without using
a form.
can it be done say instead of a form there was a link next
You could still use a form, but just have a very small one... something like:
form method=post action="yourpage.html"
input type=IMG name=REPLY value=submitimg src="ImageForReplies"
input type=IMG name=DELETE value=submitimg src="ImageForDeletions"
/FORM
This would then pass any variables you
Yes but it still goes to the same page,
if i give the option to delete or reply would it not need to go to different
pages one with the DELETE and the other to reply.
However I am still very much a newbie so of anyone knows better(which is a
certainy) then I would be delighted to listen..
You could make them on the same page with a PHP statement something like:
if ($Reply) {
//put your reply script here
}
elseif ($Delete) {
//put your delete script here
}
Just make sure the name and value of the input tags on the previous page
are called Reply and Delete.
Best,
-Ben
At
OK, sorry, I read your post in a hurry.
Something like this should work:
A HREF="the_next_page.php?id=$row[id]"Do Something/A
On the next page you'd have:
$sql = "Do Something WHERE id = '$id'";
By the way, you don't necessarily have to go to a different page in the
sense of
Thanks Ben,
and a quick answer as well.
that means I can give them an option on the main page to delete or view
the email, which is even better.
Thanks
George
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
uot;:
// your code
break;
case "Delete":
// your code
break;
case "View":
// your code
break;
}
From: Ben Weinberger [EMAIL PROTECTED]
Date: Sat, 03 Mar 2001 08:57:30 -0600
To: "george" [EMAIL PROTECTED]
Cc: [EMAI
From: "Nicholas W. Miller" [EMAIL PROTECTED]
I have a text link that is coded to open a PHP file in a popup window:
a
href="#"onClick="MM_openBrWindow('../email/popup.php?title=B2B+Antitrust:+Op
ening+Moves+in+the+Gameurl=http://www.domain.com/biz/pubs.html#antitrust','
H ... is there anyway to do this without requiring the page
with the link to use PHP?
You have to encode each part of the query string on the URL correctly:
a href="#" onClick="MM_openBrWindow('../email/popup.php??php
echo "title=" . urlencode("B2B Antitrust: Opening Moves in the
From: "Nicholas W. Miller" [EMAIL PROTECTED]
H ... is there anyway to do this without requiring the page
with the link to use PHP?
Well if the string you're going to urlencode() is always going to be the
same, then just run it through once, grab the encoded version and hard-code
it
It is sent as text to stdin.
-Original Message-
From: Diego Fulgueira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:45 PM
To: Php-General
Subject: [PHP] Passing variables to a scripting engine... (like php)
Ok. I already posted a question asking how to pass parameters
101 - 200 of 201 matches
Mail list logo