Jump to content

captain20bucks

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

captain20bucks's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Neeeeevermind, I got rid of the img tags and the javascript, then for the table column that hold the side images i just used a CSS #right { height: 100%; width: 19px; background-image: url("../images/rm.png"); background-repeat: repeat-y; } and another one for the left one. Apparently Firefox doesn't like images sized 100% but it doesn't mind table columns set for 100% with image backgrounds. Anyway problem solved
  2. Hi, I've been messing around with this for along time and I figured this would be the best place to see if anyone knows a solution. On the bio's page of my website I set it up so the guys can update their images through a form I made then all of the data for the image and their bios come in from a mysql database. The problem is my border is an image set to 100% and when the page loads the border does not connect to the rest of the table. But when you refresh the page the problem is gone until you clear your cache. I tried implementing a javascript function to resize the border images to 100% function iesucks() { var left = document.getElementById("lm"); var right = document.getElementById("rm"); left.style.height = "100%"; right.style.height = "100%"; return; } and then call it through <body onLoad="iesucks()"> but it seems that the call is being made when the HTML is loaded, not the php also. Ironically after implementing my javascript function IE no longer has an issue, but it is still a problem in Firefox 2.0. I guess my question is, is there a way for my php to tell my javascript it is done loading so Firefox will quit having a hissy fit? You can see my problem at http://www.100ppt.com/bios/branden.php
  3. I have a database, but im not using it for this, i could but im not really sure how to. I dont really want it organized by seasons. Its just each video has a picture, then beside that it has the title of the video and under the title is the season where that video played. but since there are 4 columns, i can have 2 videos next to each other, making it a bit harder to just put in the video because the videos and titles are in the same <tr> tag then the seasons that go under the title are also in a <tr> tag together. Im wondering if there is a way that everytime i upload a video, i the otehr videos would move down to make room for the new one. I was thinking an array would work, since i only want 8 videos on the page. I could have it so maybe like after 4 sets of two videos, when a fifth is added the bottom row would go to a next page. Only, I'm not sure how to make arrays with php.
  4. Hi, this script is looking preatty ugly, I really feel like theres a better way I should be doing this. Im trying to make it so theres an array to print my information for each video, then after 4 videos it makes a next page with the remaining videos. I've got more info in the middle next to where im talking about. I have this script running right now on [a href=\"http://www.anewideaco.com/happyfilms/video.php\" target=\"_blank\"]http://www.anewideaco.com/happyfilms/video.php[/a] if that would help to understand my question. [code] if ($websitesaredumb == "" || $websitesaredumb == "0") { //This is where I want there to be some sort of array or something that could make this echo the table with //the name/image/sketchnumber($sketch)/season#, and i wanted it to be able to print 4 of these with each //videos name and everything. then after 4 the bottom set would goto the next page. How could i do that? //       <tr> //        <td width=\"83\" height=\"63\" rowspan=\"2\" align=\"left\"><img src=\"sketchimg\"></td> //        <td width=\"177\" align=\"center\"><a href=\"#\" //onClick=\"fatty(thesketch#);\"><u>Sketchname</u></a></td> //        <td width=\"83\" rowspan=\"2\" align=\"left\"><img src=\"sketchimg\"></td> //        <td width=\"177\" align=\"center\"><a href=\"#\"     //onClick=\"fatty(thesketch#);\"><u>Sketchname</u></a></td> //      </tr> //              <tr> //        <td align=\"center\">sketchesseason#</td> //        <td align=\"center\">sketchesseasson#</td> //      </tr> //      <tr> //      <td colspan=\"4\">&nbsp;</td> //      </tr> echo "$top       <tr>       <td colspan=\"4\">&nbsp;</td>       </tr>       <tr>         <td width=\"83\" height=\"63\" rowspan=\"2\" align=\"left\"><img src=\"media/theme.gif\"></td>         <td width=\"177\" align=\"center\"><a href=\"#\" onClick=\"fatty(8);\"><u>Happy Films Theme Song</u></a></td>         <td width=\"83\" rowspan=\"2\" align=\"left\"><img src=\"media/dadson.gif\"></td>         <td width=\"177\" align=\"center\"><a href=\"#\" onClick=\"fatty(7);\"><u>Dad and Son</u></a></td>       </tr>       <tr>         <td align=\"center\">Season 3</td>         <td align=\"center\">Season 2</td>       </tr>       <tr>       <td colspan=\"4\">&nbsp;</td>       </tr>       <tr>         <td height=\"63\" width=\"83\" rowspan=\"2\" align=\"center\"><img src=\"media/banjo.gif\"></td>         <td height=\"48\" align=\"center\"><a href=\"#\" onClick=\"fatty(6);\"><u>No More Stupid</u></a></td>         <td rowspan=\"2\" width=\"83\" align=\"center\"><img src=\"media/bpb.gif\"></td>         <td align=\"center\"><a href=\"#\" onClick=\"fatty(5);\"><u>Brother Paster Branden - Equality</u></a></td>       </tr>       <tr>         <td align=\"center\">Season 1</td>         <td align=\"center\">Season 2</td>       </tr>       <tr>       <td colspan=\"4\">&nbsp;</td>       </tr>       <tr>         <td height=\"63\" align=\"center\" witdth=\"83\" rowspan=\"2\"><img src=\"media/beatyer.gif\"></td>         <td align=\"center\"><a href=\"#\" onClick=\"fatty(4);\"><u>Orevel Presley</u></a></td>         <td rowspan=\"2\" align=\"center\"><img src=\"media/feetsa.gif\"></td>         <td height=\"39\" align=\"center\"><a href=\"#\" onClick=\"fatty(3);\"><u>Whoesa' Feetsa'</u></a></td>       </tr>       <tr>         <td align=\"center\">Season 2</td>         <td align=\"center\">Season 2</td>       </tr>       <tr>       <td colspan=\"4\">&nbsp;</td>       </tr>       <tr>         <td height=\"63\" align=\"center\" witdth=\"83\" rowspan=\"2\"><img src=\"media/shower.gif\"></td>         <td align=\"center\"><a href=\"#\" onClick=\"fatty(2);\"><u>Shower Dad</u></a></td>         <td rowspan=\"2\" align=\"center\"><img src=\"media/turtle.gif\"></td>         <td height=\"39\" align=\"center\"><a href=\"#\" onClick=\"fatty(1);\"><u>Jenkins Threw His Secretary Out The Window</u></a></td>       </tr>       <tr>         <td align=\"center\">Season 3</td>         <td align=\"center\">Season 2</td>       </tr>"; } if ($sketch == "8" & $websitesaredumb == "2" & $sponge == "0") { echo ($themeplay); } [/code] Please help! Thanks, Branden
  5. okay im assuming my server (www.fatcow.com) is just stupid because it worked when i just tested it twice, then the third time it stopped sending again. is there a website i can host my mail.php script on that will email the info?
  6. Hey, I have been working on this form for my website and it initially worked and sent me my form information before I added the if statements, but now it wont send anything. I tried it again without the if statements i put in and it still doesnt want to work. I know my server can send mail though otherwise it wouldnt have sent the first few times. Heres the script for my form... <form name="orderform" method="POST" action="mail.php" valign="center"> <table width="531" border="0" cellspacing="5"> <tr> <td colspan="5"><b><u><br>Happy Films Order Form:</u></b><br></td> </tr> <tr> <td colspan="5">I would like to <select name="select" value="$select"> <option value="order">Order</option> <option value="preorder">Preorder</option> </select> <a href="order_help.html"><font size="1">help</font></a> a <select name="what_to_buy" onClick="workbitch()"> <option value="0" selected="selected"><---Select Item ---> <option value="shirt">T-Shirt $10 <option value="shirt+secondseason">T-Shirt+ 2ndDVD $15 <option value="firstseason">1st Season DVD $5 <option value="secondseason">2nd Season DVD $10 </select> <font color="red" size="2">Required</font></td> </tr> <tr> <td> </td> <td> </td> <td colspan="2"><div id="shirtsstuff" CLASS="color_size" style="visibility:hidden"> Size: <select name="size" value="$size"> <option value="small">sml</option> <option value="medium">med</option> <option value="large">lrg</option> </select> Color: <select name="color" value="$color" size="1"> <option value="ash">ash</option> <option value="azalea">azalea</option> <option value="banana">banana</option> <option value="black">black</option> <option value="burgundy">burgundy</option> <option value="chocolate">chocolate</option> <option value="denim">denim</option> <option value="duskpurple">dusk purple</option> <option value="forest">forest</option> <option value="gold">gold</option> <option value="heathr">heathr</option> <option value="jade">jade</option> <option value="kelly">kelly</option> <option value="khaki">khaki</option> <option value="lightblue">light blue</option> <option value="natural">natural</option> <option value="navy">navy</option> <option value="orange">orange</option> <option value="pacificblue">pacific blue</option> <option value="pink">pink</option> <option value="purple">purple</option> <option value="red">red</option> <option value="royalblue">royal blue</option> <option value="stone">stone</option> <option value="white">white</option> <option value="yellow">yellow</option> </select> <a href="colors.html"><font size="1">colors</font></a> </div></td> <td> </td> </tr> <tr> <td width="6"> </td> <td width="125">Name:</td> <td><input name="name" type="text"></td> <td> <font color="red" size="2">Required</font></td> <td> </td> </tr> <tr> <td> </td> <td>Address:</td> <td colspan="3"><input name="address" type="text" size="40"></td> </tr> <tr> <td> </td> <td>State:</td> <td colspan="3"><input name="state" type="text" ></td> </tr> <tr> <td> </td> <td>City:</td> <td colspan="3"><input name="city" type="text"></td> </tr> <tr> <td> </td> <td>Zip:</td> <td colspan="3"><input name="zip" type="text" maxlength="5" size="5"></td> </tr> <tr> <td> </td> <td>Email Address:</td> <td width="236"><input name="email" type="text"></td> <td width="61"> <font color="red" size="2">Required</font></td> <td> </td> </tr> <tr> <td colspan="5"> </td> </tr> <tr> <td colspan="5">Means of Paying, or Other information/Questions<br><br> <center> <textarea name="addinfo" value="$addinfo" rows="5" cols="60"></textarea> </center></td> </tr> <tr> <td colspan="2" align="right"> </td> <td colspan="3" align="right"> </td> </tr> <tr> <td colspan="2" align="right"> </td> <td colspan="2" align="right"><input type="submit" name="submit" value="Send"></td> <td width="63" align="right"> </td> </tr> </table> </form> Then here is my mail.php <?php @extract($_POST); $name = stripslashes($name); $email = stripslashes($email); $select = stripslashes($select); $size = stripslashes($size); $color = stripslashes($color); $what_to_buy = stripslashes($what_to_buy); $address = stripslashes($address); $state = stripslashes($state); $city = stripslashes($city); $zip = stripslashes($zip); $addinfo = stripslashes($addinfo); $to = "Happy Films <happy_films@hotmail.com>"; $from = "From: The Orderform <happy_films@hotmail.com>"; $stupid = ""; $stupid2 = ""; $stupid3 = ""; $error = false; $wrongemail = "A valid email address is required for ordering"; $noitem = "Please select an item to Purchase"; $noname = "Please put in your name"; $congrat = "Congratulations, your order has been sent!\r\nYou can expect a response within 24 hours."; $message="$name just filled in your order form.\r\ne-mail = $email.\r\nThey would like to $select a $size $color$what_to_buy.\r\n$address\r\n$state\r\n$city\r\nzip\r\nAdditional Information: $addinfo . \r\n"; $message = wordwrap($message, 70); $send = mail($to, 'Orderform', $message, $from); function check_email($str) { if(ereg("^.+@.+\..+$", $str)) { return 1; } else { return 0; } } if(!check_email($email)) { $stupid = $wrongemail; $error = true; } if ($name == "") { $stupid2 = $noname; $error = true; } if ($what_to_buy == "0") { $stupid3 = $noitem; $error = true; } if ($error == false) { $stupid = $congrat; $send; } ?> <table width="531" border="0" cellpadding="10"> <tr> <td><div align="center"><font size="4"><? print($stupid); ?></font></div></td> </tr> <tr> <td><div align="center"><font size="4"><? print($stupid2); ?></font></div></td> </tr> <tr> <td><div align="center"><font size="4"><? print($stupid3); ?></font></div></td> </tr> </table> The error messages work fine and all that, I just need help in why my message isnt being sent.
×
×
  • 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.