Well not to sound snippy, but of course I have :-)  I was pulling hair
out all day.

Now, I'm attempting to use printf to stick in the variables but guess
what's happening now?  It's not putting the correct variables int he
correct places!  I even printed out the POST hash to see what the
incoming variables are, listed them, and it is not putting the right
variables in (and yes I turned the varialbes into %s in the text that
I want to insert the variables into).

$headercontained=sprintf("$headercode", $_POST['bannerheading'],
$_POST['tagline'], $_POST['sidelink1'], $_POST['sidelink2'],
$_POST['sidelink3'], $_POST['sidlink4'], $_POST['sidelink5'],
$_POST['rightlink1'], $_POST['rightlink2'], $_POST['rightlink3'],
$_POST['rightlink4'], $_POST['rightlink5'], $_POST['rightlink6'],
$_POST['rightlink7'] );

The headercode string only has two variables in it, but it gets mad if
I don't refer to all of the hashes coming in.  (Too few arguments). 
SO what it does is it puts rightlink2's value into the very first
variable that is coming in.  I just don't get it. But it's sort of hit
and miss since I can't be more firm in the text string with %s rather
than match the named variable placeholder since I can't name the
placeholders in the string.

(More hair is being yanked on)...
It's really whacked.

I'm at a loss...

Marian

--- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote:
>
> In message <[EMAIL PROTECTED]>, Marian Briones
> <[EMAIL PROTECTED]> writes
> >OH yes, I've been doing the $ name but it won't write the value to the
> >file.  I'm trying it with printf now with the variaable as
> >$svarname....still nothing...
> 
> Have you tried doing something REALLY simple like
> $msg="Hello World",
> echo $msg;
> somewhere on your page, to make sure that PHP is awake and paying
> attention?
> 
> -- 
> Pete Clark
> 
> Free advertising for your website, business, or organisation at:
> http://www.hotcosta.com/resources.php
>






Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to