Jump to content

atrum

Members
  • Posts

    184
  • Joined

  • Last visited

Everything posted by atrum

  1. Thank you for the assistance. Just one more question. What if instead of targeting a td tag. could I target a <p> tag. Also let me just explain what I am trying to do. On my page, I have a menu with links to a seprate page. Each page is identical in terms of layout and style. The only difference is the contents of the body. My goal is to keep the contents for all the pages in a seprate file all together, and only have 1 acutall html page. The menu will actually contact javascript functions, that when pressed, replace the contents of the body, with the corrisponding content for that link. Am I crazy or is this a practical solution?
  2. Hello all, I have been trying to figure out how to accomplish using java to write html to a specific section in the body of my page. I want to use a function to call html and text, and place it in a specific area of the page. So I have my function <script type="text/javascript"> function test() { document.write("html to be inserted"); } </script> Now How do I get the onclick event to write to let's say to a table data tag in the body?
  3. I am sorry, I forgot that I renamed the page. the link should be http://team-symbiosis.com/application.html and as you can see from the source, I have the text inside a div tag. I want the contents of the div tag to align left, but not the div tag it self. I will also post my code incase this link doesnt work either. <html> <head> <style type="text/css"> body { margin: 0% 0% 0% 0%} div {background-image: url('images/appimg/background_jan.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-position: center top; background-color: black; } font {p {color: rgb(255,255,255)} </style> <title>Application for the Fallen</title> </head> <body text="white" bgcolor="black"> <div align="center"> <a name="reports"><h2>Application for the Fallen</h2><br> <FORM METHOD="post" ACTION="application.php"> <br> Select all that apply: <br><br> <input type="checkbox" name="ventrilo" value="Yes"/> Ventrilo AND working microphone <br> <br> First Name: <br> <input type="text" name="name"/><br> Main Character Name:<br> <input type="text" name="mainname"/><br> Main Character Level:<br> <input type="text" name="main_level"/><br> Main Character Class:<br> <select name="Class"> <option value="Assassin">Assassin</option> <option value="Barbarian">Barbarian</option> <option value="Bear Shaman">Bear Shaman</option> <option value="Dark Templar">Dark Templar</option> <option value="Demonologist">Demonologist</option> <option value="Guardian">Guardian</option> <option value="Herald of Xotli">Herald of Xotli</option> <option value="Necromancer">Necromancer</option> <option value="Priest of Mitra">Priest of Mitra</option> <option value="Ranger">Ranger</option> <option value="Tempest of Set">Tempest of Set</option> </select><br><br> Crafting Professions:<br> <select name="prof"> <option value="Weapon Smith">Weapon Smith</option> <option value="Armor Smith">Armor Smith</option> <option value="Alchemy">Alchemy</option> <option value="Architecture">Architecture</option> <option value="Gem Cutting">Gem Cutting</option> </select> <br><br> Gathering Professions:<br> <input type="checkbox" name="mineing" value="Mining"/> Mining <br> <input type="checkbox" name="prospecting" value="Prospecting"/> Prospecting<br> <input type="checkbox" name="skining" value="Skinning"/> Skinning &nbsp<br> <input type="checkbox" name="stone_cut" value="Stone Cutting"/> Stone Cutting<br> <input type="checkbox" name="weaving" value="Weaving"/> Weaving <br> <input type="checkbox" name="wood_cut" value="Wood Cutting"/> Wood Cutting<br><br> Average Play Time:<br> (check all that apply)<br><br> Weekdays<br> <input type="checkbox" name="avgtimehr1" value="12pm - 4pm"/> 12pm - 4pm<br> <input type="checkbox" name="avgtimehr2" value="4pm - 8pm"/> 4pm - 8pm <br> <input type="checkbox" name="avgtimehr3" value="8pm - 12am"/> 8pm - 12am<br><br> Weekends<br> <input type="checkbox" name="avgtimehr4" value="12pm - 4pm"/> 12pm - 4pm<br> <input type="checkbox" name="avgtimehr5" value="4pm - 8pm"/> 4pm - 8pm <br> <input type="checkbox" name="avgtimehr6" value="12pm - 4pm"/> 8pm - 12am<br><br> Write a brief paragragh describing your biggest gamer strength,<br> and how you plan to utilize this strength for the betterment of your team: <br> <textarea cols=40 rows=10 name="essay"></textarea> <br> <br> <input type="submit" value="Submit"/> <input type="reset" name="reset" value="Reset Form"><br> </form> </div> </body> </html>
  4. Hello, The issue I am having is probly really stupid, but what I need is to have text typed into a centered div tag align to the left of that tag. and i can not seem to do it. Here is the url http://team-symbiosis.com/test.html I am not sure what i am doing wrong.
  5. Ok I added the Max_file_size to my form, but that made no difference. The files are still being uploaded as 0kb files. Does any one have any ideas on this?
  6. Thanks, I acutally figured out the real problem, and that was; the folder upload didn't exist because I was using another name, "teamftp" Now I seem to be running into another issue, and that is that any file I upload has no data. In other words, I uploaded a jpg image. That image is 200kb in size. On the server in the directory it uploaded to the file size shows 0kb. Any ideas on what would be causing that?
  7. Hello all, I am still new to php, and I am trying to get an file upload script to work. I am using the example found on w3schools.com, and everything appears to work on the front end, but when I browse to the upload directory on my server, I do not see the file that was just uploaded. I just need some help to try and figure out why. Here is the Html form. <html> <body><form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form></body> </html> And the php code <?php if ($_FILES["file"]["size"] < 20000) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("teamftp/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); echo "Stored in: " . "teamftp/" . $_FILES["file"]["name"]; } } } else { echo "Invalid file"; } ?> The output on the browser suggests that every thing works, but as I stated above, the file never gets loaded to the server. Also just some additional information on my server. I run apache 2.0 php 5.0 Freebsd 6.4 Directory to upload is chmoded to 777 for testing. any help you can give would be greatly appreciated.
  8. Hey guys, I am pretty new to php, and need some help with a script. basically I am trying to create a script that will insert data into a premade url search query. Here is the code, that I am having issues with. <?php if ($_POST['first'] == !"" && $_POST['date1'] == !"" && $_POST['date2'] == !"") { header( 'Location: https://ids03.team-center.net/IDS/Data/ActivityMgr/activity_summary?tag_status%3Austring%3Autf8 =Status&tag_product%3Austring%3Autf8=Product&tag_about%3Austring%3Autf8=0000+About+Anything&tag_type%3Austring%3Au tf8=Type&tag_team%3Austring%3Autf8=IDS_Teams&tag_source%3Austring%3Autf8=Source&root%3Austring%3Autf8=Actions&for_ user%3Austring%3Autf8=' . $_POST['userid'] . '&tag_role%3Austring%3Autf8=work_done&date_restrict%3Austring%3Autf8=wor k_done&date_from%3Austring%3Autf8=' . $_POST['date1'] . '&date_to%3Austring%3Autf8=' . $_POST['date2'] . '&selected=11 53'); } else { echo "<h1><b>Please go back and fill out the form completely!</b></h1>"; } ?> <html> <head> <title>Email Tracker</title> </head> <body> <?php $date1 = (date("m%2fd%2fY")); $date2 = (date("m%2fd%2fY")); ?> <form name="email" action="test2.php" method="post"> <input type="text" name="userid" /> <input type="hidden" name="$date1" /> <input type="hidden" name="$date2" /> <input type="submit" name="Submit" /> </form> </body> </html> The issue I am having with this is that when I fill out the form and submit the script, it just produces a blank page, and the header doesnt get written to the addressbar. any help any one can give would be appreciated.
×
×
  • 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.