 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
ahmed30
Joined: 22 May 2008 Posts: 1
|
Posted: Thu May 22, 2008 6:52 am the php is not working. |
|
|
|
Hi guys ,
I am creating a site using Dreamweaver CS3, with database by using the Abatchi or "Wampserver".
but i have a problem , when i use the php code , it does not work at all.
for example, i created a command button with an id: "customer", At the php code,when i write the php code:
<?
if($customer)
{
echo "<script>alert('Registered Successfully')</script>";
}
?>
there is no thing appear ...
knowing that i choose "using php technology" at defining the site .
Thanks. |
|
quartzy
Joined: 26 Dec 2007 Posts: 400
|
Posted: Mon May 26, 2008 4:31 am re |
|
|
|
| dont know much about php but dont you have to start the script with <?php |
|
thexpgeek

Joined: 13 Dec 2007 Posts: 24
|
Posted: Wed May 28, 2008 11:22 am |
|
|
|
quartzy try this
| Code: |
<?
if($customer)
{
echo "<script>alert('Registered Successfully')</script>";
}else{
echo "<script>alert('Customer Who? \$customer is blank')</script>";
}
?> |
ahmed30,
works just fine. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|