Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> > > > > >>> Please show me how *without Javascript* and *only with PHP* you can >>> change the content on a page interactively as the user described >>> *without* reloadi

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Christopher W
Kevin, Your link, with some modifications to fit my site layout, worked just as I was hoping for. Thank you very much. -- "Kevin Waterson" wrote in message news:20090126092451.7aab63ff.ke...@phpro.org... > >> > Sorry, I am also new to the etiquette of these mail lists. > > Hope this will ge

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: > Paul M Foster wrote: > > > > Please show me how *without Javascript* and *only with PHP* you can > > change the content on a page interactively as the user described > > *without* reloading the whole page. Xajax contains Javascrip

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> >>> >>> In case this has yet to be answered to your satisfaction... >>> >>> Your page will *have* to reload when the user presses the button, but >>> the majority of content

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Jim Lucas
Bastien Koert wrote: > On Mon, Jan 26, 2009 at 9:25 AM, Paul M Foster wrote: > >> On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: >> >>> Paul M Foster wrote: In case this has yet to be answered to your satisfaction... Your page will *have* to reload when the use

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Bastien Koert
On Mon, Jan 26, 2009 at 9:25 AM, Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > > > Paul M Foster wrote: > > > > > > In case this has yet to be answered to your satisfaction... > > > > > > Your page will *have* to reload when the user presses the button, b

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > Paul M Foster wrote: > > > > In case this has yet to be answered to your satisfaction... > > > > Your page will *have* to reload when the user presses the button, but > > the majority of content can look the same, except for the con

Re: [PHP] New PHP User with a simple question OT

2009-01-26 Thread Carlos Medina
tedd schrieb: At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The "Problem" is not a PHP Question but a programming question. To be clear: i think, the "Problem" can you solve, if you get two or tree books or tutorials about the programming language. Y

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Micah Gersten
Paul M Foster wrote: > > In case this has yet to be answered to your satisfaction... > > Your page will *have* to reload when the user presses the button, but > the majority of content can look the same, except for the content you > want to change. > > This is absolutely not true. You can m

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Richard Lynch
You may or may not find this worth reading: http://richardlynch.blogspot.com/2007/07/php-in-html.html Bottom line is that what you are trying to do can't be done in PHP. You'll have to resort to Javascript and DIV tags with display: none; switching to display: block; -- Some people ask for gif

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Jim Lucas
Christopher W wrote: At least I hope it is simple... I am trying to get an HTML menu link to set a variable's value. For example, when a user clicks the "Home" button on my page it would cause $page = "home"; or clicking the "About Us" button will set $page="about_us"; etc. I think this sh

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Kevin Waterson
> > Sorry, I am also new to the etiquette of these mail lists. Hope this will get you started, http://www.phpro.org/tutorials/Introduction-to-PHP-templating.html Kevin http://phpro.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
On Sun, Jan 25, 2009 at 02:29:50AM -0500, Christopher W wrote: > Sorry, I am also new to the etiquette of these mail lists. > > Anyway what I was attempting to do, in the full picture, was be able to just > switch the text in the text area without actually changing pages. For > example, if the u

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
On Sun, Jan 25, 2009 at 02:40:08AM -0500, Christopher W wrote: > Mr. Kubler, > > Thank you for the help. I have to admit, I am still in over my head, I > think. Perhaps I should just stick to static pages... > > Anyway what I was attempting to do, in the full picture, was be able to just > swi

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Jason Pruim
On Jan 24, 2009, at 11:06 PM, Christopher W wrote: At least I hope it is simple... I am trying to get an HTML menu link to set a variable's value. For example, when a user clicks the "Home" button on my page it would cause $page = "home"; or clicking the "About Us" button will set $page="

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread Jason Pruim
On Jan 25, 2009, at 9:19 AM, tedd wrote: At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The "Problem" is not a PHP Question but a programming question. To be clear: i think, the "Problem" can you solve, if you get two or tree books or tutorials abo

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread tedd
At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The "Problem" is not a PHP Question but a programming question. To be clear: i think, the "Problem" can you solve, if you get two or tree books or tutorials about the programming language. You should *try*

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread tedd
At 2:29 AM -0500 1/25/09, Christopher W wrote: My problem is that I can't figure out how to get the link-click to assign the value to the variable. I didn't try any php for that end because I really didn't know where to begin. It sounds to me like you're trying to create a smart menu. Perhaps

Re: [PHP] New PHP User with a simple question OT

2009-01-25 Thread Carlos Medina
Hi Ashley, yes this is the right answer. The "Problem" is not a PHP Question but a programming question. To be clear: i think, the "Problem" can you solve, if you get two or tree books or tutorials about the programming language. You should *try* to solve the problem self and then to post a qu

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Ashley Sheridan
On Sun, 2009-01-25 at 10:51 +0100, Carlos Medina wrote: > Michael Kubler schrieb: > > The easiest way would be to use GET parameters (i.e data in the actual > > URL). > > There are a number of ways you can structure a HTML link to get what you > > want. > > You can have something basic (but not v

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Carlos Medina
Christopher W schrieb: Mr. Kubler, Thank you for the help. I have to admit, I am still in over my head, I think. Perhaps I should just stick to static pages... Anyway what I was attempting to do, in the full picture, was be able to just switch the text in the text area without actually cha

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Carlos Medina
Michael Kubler schrieb: The easiest way would be to use GET parameters (i.e data in the actual URL). There are a number of ways you can structure a HTML link to get what you want. You can have something basic (but not very elegant looking), like Home Then in your index.php code you'd probab

Re: [PHP] New PHP User with a simple question

2009-01-24 Thread Christopher W
Mr. Kubler, Thank you for the help. I have to admit, I am still in over my head, I think. Perhaps I should just stick to static pages... Anyway what I was attempting to do, in the full picture, was be able to just switch the text in the text area without actually changing pages. For example

Re: [PHP] New PHP User with a simple question

2009-01-24 Thread Christopher W
Sorry, I am also new to the etiquette of these mail lists. Anyway what I was attempting to do, in the full picture, was be able to just switch the text in the text area without actually changing pages. For example, if the user clicks "About Us" (from the home page) the page doesn't change, jus

Re: [PHP] New PHP User with a simple question

2009-01-24 Thread Lars Torben Wilson
2009/1/24 Christopher W : > At least I hope it is simple... > > I am trying to get an HTML menu link to set a variable's value. For > example, when a user clicks the "Home" button on my page it would cause > $page = "home"; or clicking the "About Us" button will set $page="about_us"; > etc. > > I

Re: [PHP] New PHP User with a simple question

2009-01-24 Thread Michael Kubler
The easiest way would be to use GET parameters (i.e data in the actual URL). There are a number of ways you can structure a HTML link to get what you want. You can have something basic (but not very elegant looking), like Home Then in your index.php code you'd probably have something like

[PHP] New PHP User with a simple question

2009-01-24 Thread Christopher W
At least I hope it is simple... I am trying to get an HTML menu link to set a variable's value. For example, when a user clicks the "Home" button on my page it would cause $page = "home"; or clicking the "About Us" button will set $page="about_us"; etc. I think this should be fairly simple bu