Tim, You might want to look into a good templating solution, too. You can make it so the customer can maintain all of the HTML and you maintain the PHP, and it's all kept separate. It's would be similar to what it looks like you are doing now.
Instead of telling the client to put <?=makeBuyButton("black shoes, size 34")?>, you could do something like <BuyButton type="shoes" size="34">, which may be easier for someone with an HTML background to understand. It's up to you. ---John Holmes... > -----Original Message----- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: Sunday, June 30, 2002 12:15 PM > To: Tim Stoop; [EMAIL PROTECTED] > Subject: Re: [PHP] [Session] SID automatically add on all pages? > > on 30/06/02 11:33 PM, Tim Stoop ([EMAIL PROTECTED]) wrote: > > > Ah yes, I forgot about that... I need to resume the session, of course. > > Would session.auto_start set to 1 work without these session_start()'s? > > I believe so... and Jason Wong has sent an email suggesting this. > > > The > > thing is, I need as less as possible of a hassle to have the sessions > > work... Read on for an explanation. > > [snip] > > I'd say everything will work out, depending of course on the code you're > writing to manage everything :) > > > It's worth pointing out that you may not really have to worry about the > session_start() call at the top of script. In reality, you may replace > this > with a single include() statement which contains a library of functions, > maintains the session, etc etc as the first line of the file. Much > simpler > than imposing yet another requirement on the host (portability is always > an > issue), and much simpler than multiple includes and stuff scattered every > where. > > <? include('inc/header.inc'); ?> // includes sessions, functions, etc > <HTML> > <HEAD> > bla bla.. > </HEAD> > <BODY> > <H1>Buy this product!</H1> > <P>bla bla</P> > <?=makeBuyButton("black shoes, size 34")?> > </BODY> > </HTML> > > Good luck. > > > Justin French > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php