Jump to content

Clancy19

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Clancy19's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Does stripslashes eliminate spaces? and how do i properly use stripslashes?
  2. Why wont this coding make my picture into a hyperlink. The picture is called basic and in saved in the same folder as the html document. I want to to link it to another page called basic.html. why doesnt this code work? How do i fix it? <a href="basic.php"><img= src="basic.jpg" alt="basic.php"/></a>
  3. Can someone please help me fix this coding. if ($total=="'10' "or" '9'") { echo "<td><p><font face=arial color=red size=7>Excellent <br></font>"; } if ($total=="'8' "or" '7' "or" '6'") { echo "<td><p><font face=arial color=red size=7>Great <br></font>"; } if ($total=="'5' "or" '4' ") { echo "<td><p><font face=arial color=red size=7>Good <br></font>"; } if ($total=="'3' "or" '2' "or" '1' "or" '0'") { echo "<td><p><font face=arial color=red size=7>Better Luck Next Time <br></font>"; } When I use this code it echos everything, no matter what $total is. How can i make this work so it only echos one statement depending on what $total is?
  4. Can you help me with my 'If statement' Please. I've gotten this far and i need help to finish it off. if ($total=="10") { echo "<td><p><font face=arial color=red size=7>Execllent <br></font>"; }else{ If $total DOES NOT = 10, i want it to not do anything. How do i code that?
  5. I'm a PHP beginner using notepad++ trying to make my own web based application and I'm having some troubles with simple forms between HTML and PHP. Can you tell me why this coding doesn't work and how to fix it please. <html> <form action ='help.php' method ="post"</form> <p>First Name: <input type= "text" Name = "fname" size = "10" maxlength = "25"/></p> <input type = "submit" name = "submit" value = "submit" /></p> </html> <?php $name = stripslashes($_POST['fname']); echo $name; ?> Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.