SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP script problem help me please....

    Ok I created a static button on a form. The static button name is Blue text then you have the choice of clicking yes or no, if you click yes the form will then out put the result to the database and store it. Now when viewing the result page when the person clicked yes to display blue it should color the text in blue. I am having a problem here is my script code

    PHP Code:
            if($a1[BlueText] == 'y')
            {
            
    $Color .= "<font color=#297ED8>\n";
            } 
    PHP Code:
            $ShowInfo "<td width=\"60%\" valign=top><font
            size=3 face=verdana>
    $Color<b>$a1[city] $a1[state]</b></font></td>; 
    Can anyone please help me?

  2. #2
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by netfreakz
    Ok I created a static button on a form. The static button name is Blue text then you have the choice of clicking yes or no, if you click yes the form will then out put the result to the database and store it. Now when viewing the result page when the person clicked yes to display blue it should color the text in blue. I am having a problem here is my script code

    PHP Code:
            if($a1[BlueText] == 'y')
            {
            
    $Color .= "<font color=#297ED8>\n";
            } 
    PHP Code:
            $ShowInfo "<td width=\"60%\" valign=top><font
            size=3 face=verdana>
    $Color<b>$a1[city] $a1[state]</b></font></td>; 
    Can anyone please help me?

    Ok forget it stupid mistake.... Thanks all


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •