On 19 October 2005 19:24, Jay Blanchard wrote:
[snip]
input class=?PHP if ($error_msg) {echo error} else {echo
normal}? id=firstname name=firstname type=text value=?php
echo $_POST['firstname'] ?
how would I fix this error?
[/snip]
You are missing several semi-colons;
input
Mike and all,
guess I still have something wrong as I am getting this error:
*Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in *
[snip]
input class=?PHP if ($error_msg) {echo error} else {echo normal}?
id=firstname name=firstname type=text value=?php echo
$_POST['firstname'] ?
how would I fix this error?
[/snip]
You are missing several semi-colons;
input class=?PHP if ($error_msg) {echo error;} else {echo normal;}?
I now have:
plabel for=firstnamespan class=red*/span First Name: /labelbr
/
input class=?PHP if ($error_msg) {echo error;} else {echo normal;}?
id=firstname name=firstname type=text value=?php echo
$_POST[firstname;]; ?
/p
but I still receive the same error:
' *Parse error*: parse error,
[snip]
I now have:
plabel for=firstnamespan class=red*/span First Name: /labelbr
/
input class=?PHP if ($error_msg) {echo error;} else {echo normal;}?
id=firstname name=firstname type=text value=?php echo
$_POST[firstname;]; ?
/p
You added one too many, change $_POST[firstname;]; to
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.phphttp://evolution.com/Contact_Form_test.php
* on line *63*
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
I think so Minuk. Here is the *entire* form code below. Maybe someone can
also point out why the email regex validation code isn't working?
TIA
/begin PHP form
code*/
?php
$form_block=END_FORM
form method=post
Seems like you're using some sort of a template or something.
I am not familiar with this type, so I'm afraid I can't be of much
help... but if i had to guess, it seems that you have to use {} instead
of ?PHP and ? So try this :
replace from the ?PHP line down to the
On 18 October 2005 15:50, Bruce Gilbert wrote:
I think so Minuk. Here is the *entire* form code below. Maybe
someone can
also point out why the email regex validation code isn't working? TIA
/begin PHP form
code*/
?php
-- Forwarded message --
From: Richard Lynch [EMAIL PROTECTED]
To: Mark Rees [EMAIL PROTECTED]
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:
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 [EMAIL PROTECTED]
To: Mark Rees [EMAIL PROTECTED]
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:
13 matches
Mail list logo