Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14604
| From | Norman Peelman <npeelman@cfl.rr.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: can one link reference two seperate files? |
| Date | 2014-11-18 06:42 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <m4fbag$k16$1@dont-email.me> (permalink) |
| References | <mn1jm36vp2n5.bryfbmjsjuzb$.dlg@40tude.net> |
On 11/10/2014 10:41 AM, richard wrote:
> <A href="page1.php">
> Is the normal way of linking.
> What if I need to send a value to page1 and another value to page2?
> With just one click.
> Or can they be nested?
> <a href="page1.php"><a href="page2.php">link</a></a>
>
First question is which page are you expecting the user to end up on?
Second, can you clarify what you mean by 'I need to send a value to
page1 and another value to page2?' What does page2 do? If page2 only
processes some data and never displays anything you could do it in
reverse by sending the two values to page2, process the data and then
redirect the page back to page1 (with value) like:
<a href="page2.php?p1=value1&p2=value2">Click Here</a>
Page2
p1 = $_GET['p1']
p2 = $_GET['p2']
//Sanitize variables
//Process p2
Redirect -> header("Location: http://example.com/Page1.php?p1=$p1");
--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
can one link reference two seperate files? richard <noreply@example.com> - 2014-11-10 10:41 -0500
Re: can one link reference two seperate files? richard <noreply@example.com> - 2014-11-10 10:45 -0500
Re: can one link reference two seperate files? "J.O. Aho" <user@example.net> - 2014-11-10 18:05 +0100
Re: can one link reference two seperate files? Matthew Carter <m@ahungry.com> - 2014-11-10 12:10 -0500
Re: can one link reference two seperate files? "J.O. Aho" <user@example.net> - 2014-11-10 20:25 +0100
Re: can one link reference two seperate files? Arno Welzel <usenet@arnowelzel.de> - 2014-11-17 13:40 +0100
Re: can one link reference two seperate files? "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-10 18:19 +0100
Re: can one link reference two seperate files? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-11-10 19:07 +0000
Re: can one link reference two seperate files? Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-10 21:24 +0000
Re: can one link reference two seperate files? Norman Peelman <npeelman@cfl.rr.com> - 2014-11-18 06:42 -0500
csiph-web