Page 1 of 1

could someone explin what is going on here?

Posted: Sun Oct 12, 2003 4:41 pm
by buzzby
<?
This section sets the defaults for the scripts
$msg = "First Name:$first";
$msg .= "Last Name:$last";
$msg .= "E-mail Address:$email";
$recipient = "driscolls@sgco.com";
$subject = "Feedback from A&E Form";
$mailheaders = "From: A&E Web Site <webmaster@aehangers.com>";
$mailheaders .= "Reply-To: $email";
?>

my question isnt whether it works or not. my question is how come there are many attributes attached to the same variable.

you have $msg = $first
$msg .=$last
$msg .=$email

please explain to me what is going on!!

what is the difference between $msg and $msg .

Posted: Sun Oct 12, 2003 4:46 pm
by like_duh44
For the:

$msg = "alkbh;alsdj";
$msg .= "lajkhoghaoerj";
$msg .= "lakjhgopqihropkgjahkjt";

There isnt any difference between $msg and $msg. The ' .= ' means that it is adding it to the end of that. So, the output of $msg would be all three entries! Hope this explains it a little better

Posted: Sun Oct 12, 2003 4:53 pm
by Gen-ik

Code: Select all

<?php
$text = "This ";
$text .= "is ";
$text .= "some ";
$text .="text.";

echo $text;
?>
That would print This is some text to the browser.

Posted: Sun Oct 12, 2003 7:28 pm
by McGruff

getting there

Posted: Mon Oct 13, 2003 4:01 am
by buzzby
ok, i understand about including the php coding into the html files. i understand about not putting the images on the database but instead saving the filenames instead. how do i save the filenames? is it easier to just call the images by using the $image var? is there any other way to do this?

pages like phpbb.com, do they use this format of having loads of html/php files then an index file which includes (via $include variable) the other php files?

is it possible to have a php form that is a multiform. ie a button to go to the next page of the form once all the previous fields have been done?