Jump to content

sstangle73

Members
  • Posts

    288
  • Joined

  • Last visited

Everything posted by sstangle73

  1. thats not my main focas tho. i can do crappy html with out " or ' thats fine. i want to fix the .From and .Reply-to first if you can help me with that?
  2. i just need to use add slashes. because i want the " or 's for the html code. like <img src="blah"> i need the "s
  3. the html is working as long as i dont use ' or " in the message.
  4. doubt it. i can check tho
  5. allright it sends. 3 problems: 1) the name and reply to address have a dot before it so if the inputed Name: Joe Smith it comes as .Joe Smith 2) i dont think html works . . . after some test i think i need to add slashes? 3) sometimes its going in my spam folder?
  6. no errors
  7. webhost. whats the error function i havent coded php in a while
  8. hey everyone making an email script and got a little stuck the email doesnt send <?php if(isset($_POST['email'])){ $to = $_POST['emailto']; $subject = $_POST['subject']; $message = str_replace("\n.", "\n..", $_POST['emailbody']); $from = $_POST['from']; $reply = $_POST['reply']; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: . ' . $from . "\r\n"; $headers .= 'Reply-to: . ' . $reply . "\r\n"; mail($to, $subject, $message, $headers); echo "Success"; } else { ?> <form action="<? echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post"> <table> <tr><td> <textarea name="emailto" rows="15" cols="50">[email protected]; [email protected]; [email protected]</textarea> </td></tr> <tr><td> <input type="text" name="subject" maxlength="100" value="subject"> </td></tr> <tr><td> <textarea name="emailbody" rows="15" cols="50">Message Here</textarea> </td></tr> <tr><td> <input type="text" name="from" maxlength="100" value="From Name"> </td></tr> <tr><td> <input type="text" name="reply" maxlength="100" value="Reply To"> </td></tr> <tr><td> <input type="submit" name="email" value="Send!"> </td></tr> </table> </form> <?php } ?>
  9. worked thanks
  10. yeah there what would you use?
  11. i fixed all relevant errors that didn't help any otehr page is fine i know the problem is within that image box indoor showcase.
  12. the lovely IE sucks http://shenentahasoccer.org fine in FF horrible in IE any suggestions?
  13. this goes in the .htaccess sp? file google mod rewrite youll find some nice tuts thats how i learned it google is your friend!
  14. noo thats what i thought at 1st also then i learned about mod rewrite it is bassed off gets so what the url is really is http://www.example.com/users.php?user=7 but the users see http://www.example.com/sara look at my site. http://stangle.info/sstangle73 shows my profile also this will http://stangle.info/profile.php?username=sstangle73
  15. heres a nice wizzard to help you with mod rewrite its not perfect but it helps http://www.mod-rewrite-wizard.com/
  16. right and then when they login you prolly want to set a session var. then when you want a user spcific page oyu call their data into an array and show it on the screen. http://stangle.info ive dont it in my free time just playing. msg me if you need some help aim sstangle73
  17. my page looks great in FF but when i go to IE it dies. http://stangle.info/sstangle73 Test LOGIN: Username: Test Password: Password code: <?php session_start(); include("database.php"); include("login.php"); include("func.php"); $query="SELECT * FROM users WHERE Username = '$_GET[username]' LIMIT 1"; $result=mysql_query($query); while($array=mysql_fetch_assoc($result)){ $pID=$array['ID']; $puser=$array['username']; $pdname=$array['dname']; $pname=$array['name']; $pemail=$array['email']; $pbdate=$array['bdate']; $page=birthday($pbdate); $psex=$array['sex']; $pcity=$array['city']; $pstate=$array['state']; $plocation=$pcity . " ," . $pstate; $pquote=$array['quote']; $pcolor=$array['color']; $psch=$array['schedule']; } $query1b="SELECT * FROM profile WHERE ID = '$pID' LIMIT 1"; $result1b=mysql_query($query1b); while($array1b=mysql_fetch_assoc($result1b)){ $pabout=$array1b['about']; } $query2="SELECT * FROM users WHERE ID = '$_GET[username]' LIMIT 1"; $result2=mysql_query($query2); while($array2=mysql_fetch_assoc($result2)){ $pID=$array2['ID']; $puser=$array2['username']; $pdname=$array2['dname']; $pname=$array2['name']; $pemail=$array2['email']; $pbdate=$array2['bdate']; $page=birthday($pbdate); $psex=$array2['sex']; $pcity=$array2['city']; $pstate=$array2['state']; $plocation=$pcity . " ," . $pstate; $pquote=$array2['quote']; $pcolor=$array2['color']; $psch=$array2['schedule']; } $query2b="SELECT * FROM profile WHERE ID = '$pID' LIMIT 1"; $result2b=mysql_query($query2b); while($array2b=mysql_fetch_assoc($result2b)){ $pabout=$array2b['about']; } if("$pcolor"=="$array2[color]"){ PageTop($_SESSION['level'], $_SESSION['ID'], $_SESSION['username'], '#FF0000'); } else { PageTop($_SESSION['level'], $_SESSION['ID'], $_SESSION['username'], $pcolor); } if($logged_in){ if("$pID"=="$array2[iD]"){ echo "The profile you tried to visit is not valid!"; } else { ?> <br><br> <table> <tr><td> <!--MainBox--> <table class=border align=left width=445px> <tr><td colspan=2> <center><h2><? if($pdname==$array2['dname']){ echo $pname; }else{ echo $pdname; } ?>!</h2></center> </td></tr> <tr><td> <?php $query55="SELECT * FROM image WHERE ID = '$pID' && `Default`='1' LIMIT 1"; $result55=mysql_query($query55) or die(mysql_error()); while($array55=mysql_fetch_assoc($result55)){ $pURL=$array55['URL']; $pTITLE=$array55['TITLE']; } if(strlen($pURL) != '0'){ ?> <table> <tr> <td> <img src='<? echo $pURL; ?>' width='170' height='127' alt="<?php echo $pTITLE; ?>"> </td></tr> <tr><td> <center><b><? echo $pTITLE; ?></b></center> </td></tr> </table> <?php }else{ ?> <img src="http://x.myspace.com/images/no_pic.gif" width=170 height=127 alt="No IMG"> <?php } ?> </td> <td><table> <tr><td><a href="i<?php echo $pID; ?>">View All Images</a></td></tr><tr><td>Future links</td></tr><tr><td>Future links</td></tr><tr><td>Future links</td></tr></table> </td> </tr> <tr><td colspan=2> <br> <center>"<? if($pquote==$array2['quote']){ echo $pname . "'s quote will be here soon!"; }else{ echo $pquote; } ?>"</center> <br> </td></tr></table> <!--End Main Box--> <br><br> <!--URL--> <table class=border align=left width=445px> <tr><th><center><h3>My URLs</h3></center></th></tr> <tr><td><center><a href="<? echo $pID; ?>">http://stangle.info/<? echo $pID; ?></a></center></td></tr><tr><td><center>or</center></td></tr><tr><td><center><a href="<? echo $puser; ?>">http://stangle.info/<? echo $puser; ?></a></center></td></tr> </table> <!--End URL--> <br><br> <!--ABOUT ME--> <?php if($pabout!=$array2b['about']){ ?> <table class=border align=left width=445px> <tr><td><center> <h3>About <?php echo $pdname; ?></h3> </center></td></tr> <tr><td> <?php echo $pabout; ?> </td></tr> </table> <?php } ?> <!--END ABOUT ME--> <br><br> </td> <td> </td> <td valign="top"> <!--NAS--> <table class=border align="right" width="380px"> <tr><td><br><br> <center><? echo $pname . " " . $page . " " . $psex; ?></center> <br><br></td></tr></table> <!--End NAS--> <br><br> <!--Schedule--> <?php if($psch!=$array2['schedule']){ ?> <table class=border align=right width=380px> <tr><td><center> <?php $query3="SELECT * FROM 9perschedule WHERE ID = '$pID' LIMIT 1"; $result3=mysql_query($query3) or die(mysql_error()); while($array3=mysql_fetch_assoc($result3)){ $pSID=$array3['ID']; $ptype=$array3['Type']; $phra=$array3['HRa']; $phrb=$array3['HRb']; $pp1at=$array3['Period1at']; $pp1as=$array3['Period1as']; $pp1bt=$array3['Period1bt']; $pp1bs=$array3['Period1bs']; $pp2at=$array3['Period2at']; $pp2as=$array3['Period2as']; $pp2bt=$array3['Period2bt']; $pp2bs=$array3['Period2bs']; $pp3at=$array3['Period3at']; $pp3as=$array3['Period3as']; $pp3bt=$array3['Period3bt']; $pp3bs=$array3['Period3bs']; $pp4at=$array3['Period4at']; $pp4as=$array3['Period4as']; $pp4bt=$array3['Period4bt']; $pp4bs=$array3['Period4bs']; $pp5at=$array3['Period5at']; $pp5as=$array3['Period5as']; $pp5bt=$array3['Period5bt']; $pp5bs=$array3['Period5bs']; $pp6at=$array3['Period6at']; $pp6as=$array3['Period6as']; $pp6bt=$array3['Period6bt']; $pp6bs=$array3['Period6bs']; $pp7at=$array3['Period7at']; $pp7as=$array3['Period7as']; $pp7bt=$array3['Period7bt']; $pp7bs=$array3['Period7bs']; $pp8at=$array3['Period8at']; $pp8as=$array3['Period8as']; $pp8bt=$array3['Period8bt']; $pp8bs=$array3['Period8bs']; $pp9at=$array3['Period9at']; $pp9as=$array3['Period9as']; $pp9bt=$array3['Period9bt']; $pp9bs=$array3['Period9bs']; } if($ptype == '9Per'){ ?> <table> <tr><td><center> </center></td><th><center>My Schedule</center></th></tr> <?php if("$phra"=="$phrb"){ ?> <tr><td><center>Homeroom A+B</center></td><td><center><?php echo $phra; ?></center></td></tr> <?php } else { ?> <tr><td><center>Homeroom A</center></td><td><center><?php echo $phra; ?></center></td></tr> <tr><td><center>Homeroom B</center></td><td><center><?php echo $phrb; ?></center></td></tr> <?php } ?> <tr><td><center> </center></td><td><center>Subject</center></td><td><center>Teacher</center></td></tr> <?php if("$pp1at"=="$pp1bt"){ ?> <tr><td><center>Period 1 A+B</center></td><td><center><?php echo $pp1as; ?></center></td><td><center><?php echo $pp1at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 1 A</center></td><td><center><?php echo $pp1as; ?></center></td><td><center><?php echo $pp1at; ?></center></td></tr> <tr><td><center>Period 1 B</center></td><td><center><?php echo $pp1bs; ?></center></td><td><center><?php echo $pp1bt; ?></center></td></tr> <?php } ?> <?php if("$pp2at"=="$pp2bt"){ ?> <tr><td><center>Period 2 A+B</center></td><td><center><?php echo $pp2as; ?></center></td><td><center><?php echo $pp2at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 2 A</center></td><td><center><?php echo $pp2as; ?></center></td><td><center><?php echo $pp2at; ?></center></td></tr> <tr><td><center>Period 2 B</center></td><td><center><?php echo $pp2bs; ?></center></td><td><center><?php echo $pp2bt; ?></center></td></tr> <?php } ?> <?php if("$pp3at"=="$pp3bt"){ ?> <tr><td><center>Period 3 A+B</center></td><td><center><?php echo $pp3as; ?></center></td><td><center><?php echo $pp3at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 3 A</center></td><td><center><?php echo $pp3as; ?></center></td><td><center><?php echo $pp3at; ?></center></td></tr> <tr><td><center>Period 3 B</center></td><td><center><?php echo $pp3bs; ?></center></td><td><center><?php echo $pp3bt; ?></center></td></tr> <?php } ?> <?php if("$pp4at"=="$pp4bt"){ ?> <tr><td><center>Period 4 A+B</center></td><td><center><?php echo $pp4as; ?></center></td><td><center><?php echo $pp4at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 4 A</center></td><td><center><?php echo $pp4as; ?></center></td><td><center><?php echo $pp4at; ?></center></td></tr> <tr><td><center>Period 4 B</center></td><td><center><?php echo $pp4bs; ?></center></td><td><center><?php echo $pp4bt; ?></center></td></tr> <?php } ?> <?php if("$pp5at"=="$pp5bt"){ ?> <tr><td><center>Period 5 A+B</center></td><td><center><?php echo $pp5as; ?></center></td><td><center><?php echo $pp5at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 5 A</center></td><td><center><?php echo $pp5as; ?></center></td><td><center><?php echo $pp5at; ?></center></td></tr> <tr><td><center>Period 5 B</center></td><td><center><?php echo $pp5bs; ?></center></td><td><center><?php echo $pp5bt; ?></center></td></tr> <?php } ?> <?php if("$pp6at"=="$pp6bt"){ ?> <tr><td><center>Period 6 A+B</center></td><td><center><?php echo $pp6as; ?></center></td><td><center><?php echo $pp6at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 6 A</center></td><td><center><?php echo $pp6as; ?></center></td><td><center><?php echo $pp6at; ?></center></td></tr> <tr><td><center>Period 6 B</center></td><td><center><?php echo $pp6bs; ?></center></td><td><center><?php echo $pp6bt; ?></center></td></tr> <?php } ?> <?php if("$pp7at"=="$pp7bt"){ ?> <tr><td><center>Period 7 A+B</center></td><td><center><?php echo $pp7as; ?></center></td><td><center><?php echo $pp7at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 7 A</center></td><td><center><?php echo $pp7as; ?></center></td><td><center><?php echo $pp7at; ?></center></td></tr> <tr><td><center>Period 7 B</center></td><td><center><?php echo $pp7bs; ?></center></td><td><center><?php echo $pp7bt; ?></center></td></tr> <?php } ?> <?php if("$pp8at"=="$pp8bt"){ ?> <tr><td><center>Period 8 A+B</center></td><td><center><?php echo $pp8as; ?></center></td><td><center><?php echo $pp8at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 8 A</center></td><td><center><?php echo $pp8as; ?></center></td><td><center><?php echo $pp8at; ?></center></td></tr> <tr><td><center>Period 8 B</center></td><td><center><?php echo $pp8bs; ?></center></td><td><center><?php echo $pp8bt; ?></center></td></tr> <?php } ?> <?php if("$pp9at"=="$pp9bt"){ ?> <tr><td><center>Period 9 A+B</center></td><td><center><?php echo $pp9as; ?></center></td><td><center><?php echo $pp9at; ?></center></td></tr> <?php } else { ?> <tr><td><center>Period 9 A</center></td><td><center><?php echo $pp9as; ?></center></td><td><center><?php echo $pp9at; ?></center></td></tr> <tr><td><center>Period 9 B</center></td><td><center><?php echo $pp9bs; ?></center></td><td><center><?php echo $pp9bt; ?></center></td></tr> <?php } ?> </table> <?php } else if($ptype== 'block'){ } else { echo $pdname . " has not made a schedule yet!"; } ?> </center> </td></tr> </table> <?php } ?> <!--End Schedule--> </td> </tr> </table> <?php } } else { echo "You have to Be logged in to view that"; displaylogin3($ID); } Valid(); PageBottom(); ?>
  18. mysql_query("UPDATE image SET `Default` = '2' WHERE ID = '$ID' & IMG_ID = $olddid ") or die(mysql_error()); doesnt change Default to 2 leaved it at 1 $olddid is the right # same with $id
  19. yeah i used & and got it thanks
  20. thanks what about makeing it select bassed on 2 things? "SELECT * FROM image WHERE ID = '$ID', `Default`='1' LIMIT 1"; You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' `Default`='1' LIMIT 1' at line 1
  21. mysql_query("UPDATE image SET Default = '1' WHERE 'IMG_ID' = '$_POST[default]'") or die(mysql_error()); returns You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Default = '1' WHERE 'IMG_ID' = '3'' at line 1
  22. works thanks had to mod it a little but
  23. oh yeah that looks like that will be the one.
  24. im not sure if this will help but try putting the header and session start at the ver begging of the page
×
×
  • 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.