Reply to Re: [PHP] re: some problems with php form

Your name:

Reply:


Posted by Minuk Choi on 10/18/05 17:38

Can you post your Contact_Form_test.php?

<input class="<?PHP
if ($error_msg)
{
echo "input.error";
}
else
{
echo "input.normal";
}
?>" id="firstname" name="firstname" type="text" value="<?PHP echo
$_POST['firstname'];?>">

should parse into HTML by PHP. This block, I am assuming is placed in a HTML tag and not in a <?PHP block, correct?



Bruce Gilbert wrote:

>Minuk,
> your revisions gives me an error:
> *Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
>T_STRING or T_VARIABLE or T_NUM_STRING in *
>/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form_test.php<http://evolution.com/Contact_Form_test.php>
>* on line *63*
> -Bruce
>
> On 10/17/05, Minuk Choi <Choi.Minuk@verizon.net> wrote:
>
>
>>Wait a minute... you meant
>>
>><input class="
>><?PHP
>>if ($error_msg)
>>{
>>echo "input.error";
>>}
>>else
>>{
>>echo "input.normal";
>>}
>>?>" id="firstname" name="firstname" type="text" value="<?PHP echo
>>$_POST['firstname'];?>">
>>
>>
>>...or am I looking at the wrong thing?
>>
>>Bruce Gilbert wrote:
>>
>>
>>
>>>---------- Forwarded message ----------
>>>From: "Richard Lynch" <ceo@l-i-e.com>
>>>To: "Mark Rees" <mrees@itsagoodprice.com>
>>>Date: Mon, 17 Oct 2005 15:12:50 -0500 (CDT)
>>>Subject: Re: [PHP] Re: a couple of problems with PHP form
>>>On Mon, October 17, 2005 5:32 am, Mark Rees wrote:
>>>
>>>
>>>
>>>
>>>>-----------------------------------------------------
>>>>sorry, my editor has not indented again
>>>>-----------------------------------------------------
>>>>also, I want the field to appear hilighted when there is no
>>>>information so I am doing this:
>>>>
>>>><input class="<? if($error_msg){ echo "error"; } ELSE { echo
>>>>"normal"; } id="firstname" name="firstname" type="text"
>>>>value="{$_POST['firstname']}"? />"
>>>>
>>>>
>>>>
>>>>
>>>I think the quote mark balancing is messed up here...
>>>
>>>
>>>
>>>
>>>><input class="
>>>>this starts a quote for the class=
>>>>There appears to be no ending quote for that...
>>>>
>>>>
>>>>
>>>>
>>>I>t may simply have been lost in email editing, however...
>>>
>>>
>>>adding the input.error didn't solve the problem dang it.! If there is
>>>a ending quote missing, I don't see it right off hand.
>>>
>>>I know have:
>>>
>>>
>>><input class="<? if($error_msg){ echo "input.error"; } ELSE { echo
>>>"input.normal"; } id="firstname" name="firstname" type="text"
>>>value="{$_POST['firstname']}"? />"
>>>
>>>in the css:
>>>
>>>input.error {
>>>border: 2px inset red;
>>>margin:0;
>>>font-family: arial, helvetica, sans-serif;
>>>color: #036;
>>>width: 15em;
>>>padding-left: .25em;
>>>font-weight: bold;
>>>background: #eee;
>>>}
>>>
>>>
>>>
>>>
>>>
>
>
>
>--
>::Bruce::
>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация