Everything posted by skidz
-
Form coding troubles
you've got a form tag within a form tag <form id="form1" name="form1" method="post" action="/formmail/formmail.cgi"> <form action="/formmail/formmail.cgi" method="post"> Also your missing a submit button
-
Templating Concepts
My templating system goes something like this: <?php include($_SERVER['DOCUMENT_ROOT'].'/private/page_templates/header.php'); include($_SERVER['DOCUMENT_ROOT'].'/private/page_templates/side_menu.php'); loadmodules(); include($_SERVER['DOCUMENT_ROOT'].'/private/page_templates/footer.php'); ?>
-
How to keep code tidy
I just tab in for each different nest i.e: $aQuery = mysql_query("SELECT * FROM `thistable`"); while($aResult = mysql_fetch_array($aQuery)){ //new nest echo "<div>"; //new nest echo "<p>{$aResult['thisresult']}</p>"; echo "</div>"; } You'll pick up your own method of doing things that your comfortable with as you go along!
-
more css code help please?
can u upload a screenshot of what your trying to accomplish?
-
input field- send email
That's what you want
-
form element background-image moves
Try: .form_title input[type=text]{ } I wouldn't use it at all if I was you as the majority of browsers won't parse css2
-
input field- send email
Im not going to do it for you but I'll point you in the right direction Looking to PHP... You'll need to pass the posted vars with $_POST. Then you'll want to format the message with text. Then send it off with php's mail function... mail()
-
more css code help please?
#thisDiv{ width: 200px; position: absolute; top: 85%; left: 50%; } I hope I've interpretted what it is you want correctly
-
Next step
asp can only be used with windows "officialy" there are ways and means around it... 'WINE' is an example... If I was you i'd learn nice clean xhtml and css first then move onto things that are more classed as programming... javascript/php was my choice. I learnt php first the javascript, once you've learnt one language others follow quite easily
-
5 pages in a popup
asin 5 popup pages open up at the same time?
-
absolute positioning
absolute positioning can be a god send as long as its done correctly
-
screen with image on first time visit site only
setcookie('thisisthecookiename',true); Google "php setcookie function" to get the available params
-
PHP SELF : 2 FORMS ONE PAGE.
For multiple submits Id just use different names on the submit button and in a nutshell u could do something like: if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['submitbutton1'])){ //play with form 1 } if(isset($_POST['submitbutton2'])){ //play with form2 } } ?> <form action=<?php echo $_SERVER['PHP_SELF'];?>" method="post"> blaaaaaaa Thats litterally the raw elements... Id use a switch personally but you get the idea
-
Problem with PHP posting script
might not be relevant but unless my memory is wrong varchar rows are limited to 255 chars
-
A radio button in php
I took the easy option and just gave him the answer
-
PHP code help please
$name = $_POST['name']; $email = $_POST['email']; $email2 = $_POST['email2']; $membername = $_POST['allreadymember']; $reason = $_POST['reason']; $comment = $_POST['comment']; $success = 0; //name check if (strlen($name) < 1) { echo"Please Fill In a Name."; include ('contact.html'); } else { $success = $success + 1; exit(); } //email check if($email != $email2){ echo"Please Make Sure the two emails match."; include('contact.html'); } else { $success = $success + 1; exit(); } //reason check if($reason == "Choose One"){ echo "Please Select a Valid Reason"; include('contact.html'); }else{ $success = $success + 1; exit(); } //comment check if(strlen($comment) < 1){ echo "Please Enter a Comment"; include ('contact.html'); } else { $success = $success + 1; exit(); } //call too action if ($success = 4) { include('emailsend.php'); }else{ echo"There has been a PHP error, Please contact admin straight at admin@united-gamerz.com, Sorry for any Inconvieniance. Admin"; include('contact.html'); exit(); }
-
A radio button in php
$form .= "<input type=\"radio\" name=\"givemeaname\" value=\"telephone\" />"; $form .= "<input type=\"radio\" name=\"givemeaname\" value=\"email\" />";