Jump to content

dezkit

Members
  • Posts

    1,236
  • Joined

  • Last visited

Everything posted by dezkit

  1. dezkit

    help!!

    i got this script off a site which i wont say because it might be advertising, and i was wondering how would i do so when i type in the password, it will go to a page, not the page called the password. <script> function submitentry(){ password = document.password1.password2.value.toLowerCase() username = document.password1.username2.value.toLowerCase() passcode = 1 usercode = 1 for(i = 0; i < password.length; i++) { passcode *= password.charCodeAt(i); } for(x = 0; x < username.length; x++) { usercode *= username.charCodeAt(x); } //CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD if(usercode==1605876972000&&passcode==1452095820000) //CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD { window.location=password+".htm"} else{ alert("password/username combination wrong")} } </script> <form name="password1"> <strong>Enter username: </strong> <input type="text" name="username2" size="15"> <br> <strong>Enter password: </strong> <input type="password" name="password2" size="15"> <input type="button" value="Submit" onClick="submitentry()"> </form>
  2. how do i make more than one? <script type="text/javascript"> function change(ele) { element = document.getElementById(ele); (element.style.display == "block") ? element.style.display = "none" : element.style.display = "block"; }</script> <div onclick="change('below')"> This is some text. Click here to show more text. </div> <div id="below" style="display:none; "> This is some more text. You cannot see it on page load, click the text above to display it. </div>
  3. Every time i press submit when i have phone filled out, it says i didnt fill itout. <script language="JavaScript"> <!-- function formCheck(formobj){ // Enter name of mandatory fields var fieldRequired = Array("FullName", "Phone"); // Enter field description to appear in the dialog box var fieldDescription = Array("Full Name", "Phone"); // dialog message var alertMsg = "Please complete the following fields:\n"; var l_Msg = alertMsg.length; for (var i = 0; i < fieldRequired.length; i++){ var obj = formobj.elements[fieldRequired[i]]; if (obj){ switch(obj.type){ case "select-one": if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; case "select-multiple": if (obj.selectedIndex == -1){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; case "text": case "textarea": if (obj.value == "" || obj.value == null){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; default: } if (obj.type == undefined){ var blnchecked = false; for (var j = 0; j < obj.length; j++){ if (obj[j].checked){ blnchecked = true; } } if (!blnchecked){ alertMsg += " - " + fieldDescription[i] + "\n"; } } } } if (alertMsg.length == l_Msg){ return true; }else{ alert(alertMsg); return false; } } // --> </script> <form action="/site/index.php?page=thanks" method="post" onsubmit="return formCheck(this);"> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">Full Name<font color="red">*</font>:</label><input type="text" name="FullName" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">Age:</label><input type="text" name="Age" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">Phone<font color="red">*</font>:</label><input type="text" name="Phone" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">E-Mail:</label><input type="text" name="Email" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">AIM Screen Name:</label><input type="text" name="AIM" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <label style="float:left;width:20px;"> </label><label style="float:left;width:140px;">Myspace URL:</label><input type="text" name="Myspace" id="Phone" value="" maxlength="" style="width:180px;"><div style="clear:left;height:0px;"> </div> <br> <center> <input type='submit' value='Submit'> <input type="reset" value="Reset"> </center> </body> i know all the id's are set to phone but im too lazy to remove it.
  4. I got it, i don't need that code, thanks for the quick reply though
  5. problem solved. i just added an additional case '': print 'Home'; break;
  6. btw i want both the default page, index.php, and index.php?view=Home to say Home <?php $page = strtolower($_GET['page']); switch ($page) { case 'home': print 'Home'; break; case 'events': print 'Events'; break; case 'employment': print 'Employment'; break; case 'gallery': print 'Gallery'; break; case 'djs': print 'DJs'; break; case 'vip': print 'VIP'; break; case 'forum': print 'Forum'; break; case 'contact': print 'Contact'; break; } ?>
  7. THANK YOU VERY MUCH BAUER!!!! :-* :-* :-*
  8. Is there a code so if the page is index.php?page=Home it says Hi and if the page is index.php?page=Events it says Hello, or something like that, but the code HAS to be in index.php. Lots of Thanks. im not that pro in PHP but i think the code has to look something like <?php $?=?("?"); if ($?=="index.php?page=Home") echo "Hi"; elseif ($d=="index.php?page=Events") echo "Hello"; ?>
  9. i have no clue about what you just said lol, im new to php but anyways, thanks for help!
  10. bump before i go to sleep
  11. great code thanks alot, i will use it... but i also want so if www.example.com/index.php?view=home will say HOME but www.example.com/index.php?view=home&postID=23023 will say SOMETHING thanks alot if you answer
  12. How do i make so there is like &type=1234 after the $page=="home" <?php $page = $_GET["page"]; if (!$page) { include "/site/home.php"; } else if($page=="home") { include "/site/home.php"; } else if($page=="events") { include "/site/events.php"; } else if($page=="employment") { include "/site/employment.php"; } else if($page=="gallery") { include "/site/gallery.php"; } else if($page=="links") { include "/site/links.php"; } else if($page=="djs") { include "/site/djs.php"; } else if($page=="vip") { include "/site/vip.php"; } else if($page=="forum") { include "/site/forum.php"; } else if($page=="contact") { include "/site/contact.php"; } else { echo "<b><h1>404 Error</h1></b>"; } ?>
  13. nevermind i coded myself. thanks again haha. and another problem... lol i cant use <br /> <?php $to = "me@msas.com"; $subject = "hi sir"; $body = "Username: " . $_POST["username"] . "<br />Password: " . $_POST["password"]; if (mail($to, $subject, $body)) { echo "<p>Message successfully sent!</p>"; } else { echo "<p>Message delivery failed...</p>"; } ?>
  14. damnit >< it doesnt work. This is what comes up in my email: This person likes you, his name is <br />username: <br />password:
  15. Wait one second lol <?php $to = "me@Myself.com"; $subject = "hi sir"; $body = "This person likes you, his name is " . $_POST["name"]; if (mail($to, $subject, $body)) { echo "<p>Message successfully sent!</p>"; } else { echo "<p>Message delivery failed...</p>"; } ?> How do i make multiples? For example : Username: (php code)<br> Password: (php code)<br> etc
  16. THANK YOU VERY MUCH DRAGEN. I LOVE YOU!
  17. How do i do so i can put php in email scripts? for example <?php $to = "me@Myself.com"; $subject = "hi sir"; $body = "This person likes you, his name is <?php echo $_POST["name"]; ?>"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> what is wrong with that? why can't i send an email using php? thanks to anyone who responds.
×
×
  • 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.