Re: Simple Question
| From: | Tom Peck | Date: | Mon, 03 Jul 2000 02:25:02 +0000 |
| Subject: | Re: Simple Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4424@lists.php.net to get a copy of this message | ||
Wow - that was very impressive.
6 helpful responses in less than an hour! I came back from lunch - to find
my answer answered numerous times. Thanks people.
Tom
----- Original Message -----
From: Tom Peck <tompeck@paradise.net.nz>
To: <php-general@lists.php.net>
Sent: Monday, July 03, 2000 1:06 PM
Subject: [PHP] Simple Question
Hello everybody.
I am new to PHP - with an ASP background. Quick question, is there an
equilivent to eg:
<SELECT id=game name=game>
<OPTION VALUE=sltValue><%= variabletoshow %></OPTION>";
</SELECT>
The only way i have seen to do this with php is this:
<SELECT id=game name=game>
<?php
echo "<OPTION VALUE=sltValue>$variabletoshow</OPTION>";
?>
</SELECT>
I am just wanting a way to remove the echo statment, so that my web page
designer program will recognise the form as being complete.
Hope this makes sense.
Cheers
Tom Peck