Jump to content

Big_J

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Big_J's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I don't know what you meant by include, but "both on your server" just solved it for me. I'll send the data to one, and from that one to the other. Thanks.
  2. I know about mail, mailer was just an example, it's not a mailer. I want to send the data to a php page, which uses the data to do something else...
  3. Hi. Is there any possible way to submit a form, either with get or post, to two different pages? So for example, I have <form method="post" action="mailer.php"> and I want to send the info to both mailer.php and mailer2.php? Is there a way to do it?
  4. Oh yes, the old escape sequence. Thanks. I'll stick with <<<END though, I think it looks better.
  5. Well, because I'm using html tags that have attributes, and will be using quote in those tags, and a regular echo doesn't work because the quotes in those tags terminate it. I'm new to php, as you probably could tell, so I don't know if there is a different way to do this or not. Basically, I'm building a script that displays different questions depending on the answer of the previous question, so since not all question will be displayed at once, I need to have them inside the php script to display them when needed via if else statements. I'm experienced with C. Thanks, that solved it. I wish manuals would use clearer language. This is from the manual for echo: What I got from that is that END; must have no white space before it. "terminator must appear on a line with just a semicolon..."
  6. Hello. I have been looking for an answer for about a week now to no avail. I cannot find any kind of informative documentation on this. I'm trying to figure out how the <<<END works This is how I think it works, from the little explanation I found: It allows you to ouput multiple lines of text, or html code, and is used like this: echo <<<END text goes here more text goes here maybe some html tags <b>here</b> a <form></form> END; But even if I put a single word, it does not work, I keep getting "Parse error: syntax error, unexpected $end in /var/www/page.php on line xx" Where xx is the last line number, even blank. So what is missing? Here's the complete code sample: <html> <body> <?php $test = 1; if ($test == 1){ echo <<<END Monkey has brains END; } else echo "monkey has no brain!"; ?> </body> </html> Do I need to include something? Can someone please explain to me how that works, or if there is some other way to add html code inside the php script?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.