dezkit
-
Posts
1,236 -
Joined
-
Last visited
Posts posted by dezkit
-
-
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>
-
it works now lol thanks
-
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.
-
I got it, i don't need that code, thanks for the quick reply though
-
problem solved.
i just added an additional
case '': print 'Home'; break;
-
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; } ?>
-
THANK YOU VERY MUCH BAUER!!!! :-* :-* :-*
-
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"; ?>
-
i have no clue about what you just said lol, im new to php but anyways, thanks for help!
-
bump before i go to sleep
-
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
-
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>"; } ?>
-
awesome ideas
-
good script, lol.
-
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>"; } ?>
-
damnit >< it doesnt work. This is what comes up in my email:
This person likes you, his name is <br />username: <br />password:
-
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
-
THANK YOU VERY MUCH DRAGEN. I LOVE YOU!
-
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.
help!!
in Javascript Help
Posted
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.