Jump to content

MarkT

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by MarkT

  1. Hello,Sorry I'm experiencing problems with my css, #title {width: 200px;height: auto;margin-top: -10px;margin-left: 20px;background-color:#000;border-radius: 2px;color: #DF3A01;}#search {width: 600px;height: auto;color: #FFF;margin-top: 28px;position: absolute;margin-left: 190px;display: inline;}#buttons {width: 300px;height: auto;color: #FFF;margin-top: 28px;position: absolute;margin-right: 30px;display: inline;}#buttons li {border-left: 2px dashed #FE9A2E;padding: 5px 5px 5px 5px;display: inline;}#buttons ul {display: inline;}#bar {margin-left: -15px;margin-right: -15px;margin-top: -12px;width: 110%;height: 50px;background-color: #000;position: fixed;border-radius: 3px;padding-left: 15px;padding-right: 15px;padding-top: 12px;} and my html; <div id="bar"><div id="title"><h1 color="#FE9A2E" style="float: left;">PitchIT</h1></div><div id="search"><?PHP// Array for Config variables$Config['CanSearch'] = false; // Falseif($Config['CanSearch'] == true){ echo 'form name="search" method="post" action="<?=$PHP_SELF?>"><input type="text" size="50" name="query" placeholder="Enter Search Query Here..." /> by<Select NAME="field"><Option VALUE="name">Name</option><Option VALUE="email">Email</option><Option VALUE="id">ID</option></Select><input type="hidden" name="searching" value="yes" /><input type="submit" name="search" value="Search" /></form>';}else{ echo 'Search Currently Unavailable!';}?></div><div id="buttons"><ul><li>Bob</li><li>Bob</li></ul></div></div> But it shows as the image attached below. The bob li's show up in the middle f the search and title.they're meant to be on the far right.... Thanks in advance!all help appreciated!
  2. I don't really get what you're saying, but i assume;<select name="drop"> <option value="1">One</option><option value="2">Two</option></select> Then On your HTML Form Action document.For this demo; bob.phpcontents: $option = $_POST['drop'] Then echo '{$option}'
  3. MarkT

    PHP post forms

    http://www.w3schools.com/tags/att_input_type.asp <input type="reset" name="reset" value="Reset Form!"> Should work!
  4. if you're using PHP fwrite,use<?PHP $content = WHATEVER YUO WANT."\r\n"; $file = 'filedirectory.txt'; $fp = fopen($file, 'a'); fwrite($fp, '<p>');fwrite($fp, $content);fwrite($fp, '</p>'); fclose($fp); ?> I use the above code to track IP addresses to certain pages on my CMS. so it writes <br /> after, ie.fwrite($fp, $ipaddress);fwrite($fp, '<br />'); etc. Hope I Helped!
  5. MarkT

    HTML Form

    To reiterate the point above,where you have <textarea name="comment"> YOu MUST HAVE A </textarea> after it, so it should look like this;<textarea name="comment"></textarea>
  6. once again,PHP is what you need here,Use a HTML Form,and the PHP email located here;http://www.w3schools.com/php/php_mail.asp So set the $to = Your email and then use a HTML Form POST method, to get the email address of the user sending, and put that as a variable, then use that in the $from field.etc
  7. I recommend making these:width: 110%;margin-left: -10px;margin-right: -10px;and adding padding, this makes the div's width cover everything.
  8. I suggest using PHP,Create A HTML Form, using POST method & action=submit.phpthen in submit.php$name = $_POST['name'] $email = $_POST['email']$link = $_POST['link'] INSERT Into {TABLE NAME} VALUES ('{$name}', '{$email}', '{$link}') Then on the links page, SELECT link FROM {TABLE NAME} and then echo the results in a table.
  9. Helping people with HTML/CSS/PHP

  10. MarkT

    User posted comments

    All i can suggest,is using PHP with HTML Forms. <form type='submitcom.html' method='POST'>Name: <br><input type='text' name='name'><br>Email: <br><input type='email' name='email'><br>Comment: <br><textarea name="comment"></textarea><br><input type='submit' name='submit' value='Login'></form> Then; [color=#880000]<?PHP [/color] $name = $_POST['name'][color=#880000]$email = $_POST['email'][/color][color=#880000]$comment = $_POST['comment'][/color] mysql_query[color=#666600]([/color][color=#008800]"INSERT into {TABLE NAME} VALUES ('{$name}', '{$email}', '{$comment}') [/color][color=#666600]?>[/color] Then in the place where you want the comments; [color=#000000]<?PHP [/color] mysql_connect [color=#666600]([/color][color=#880000]host,username,password,dbname);[/color] mysql_query ("SELECT * FROM {TABLE NAME}") ?> Then echo the results of the select,and style the echo into some sort of table.
  11. Put it inside a DIV,for example;<div id="player"> Player Code Here</div> then CSS; #player {display: none;}
  12. <?PHP include "/variables.php" ?> then in variables write<?PHP $var1 = {VARIABLE DETAIL};$var2 = {VARIABLE DETAIL};$var3 = {VARIABLE DETAIL}; ?> Thats all i can think of.
  13. I recommend using PHP with SQL and HTML/CSS create a user system,with a login, and a dashboard, with a HTML form on a page, for example; name, admission place etcdeclare the variables in PHP with Post method. on submission run SQL querymysql_connect ([color=#444444]host,username,password,dbname);[/color] [color=#ff0000]$name = $_POST['name'][/color][color=#ff0000]$class = $_POST['class'][/color][color=#ff0000]$level = $_POST['level'][/color] mysql_query("INSERT into {TABLE NAME} VALUES ('{$name}', '{$class}', '{$level}') ?>For example (Thats one i sent to someone earlier )http://w3schools.invisionzone.com/index.php?showtopic=47661&pid=264267&st=0entry264267 then create an admin panel;and declare$name = mysql_query("SELECT name FROM {TABLE NAME}");$class = mysql_query("SELECT class FROM {TABLE NAME}");$level = mysql_query("SELECT level FROM {TABLE NAME}"); then echo '{$name}' etc.... in the admin panel as a form. If you dont understand let me know
  14. Please stop with the sarcastic comments,if you read my question, How do i code a popup like the ones on this forum? for example sending a private message?
  15. Basically;<?PHP mysql_connect ([color=#444444]host,username,password,dbname);[/color] [color=#ff0000]$name = $_POST['name'][/color][color=#ff0000]$class = $_POST['class'][/color][color=#ff0000]$level = $_POST['level'][/color] mysql_query("INSERT into {TABLE NAME} VALUES ('{$name}', '{$class}', '{$level}') ?> For the bits in red; this is based on you using a HTML form using the method = POST For example; <form type='submit.html' method='POST'>Name: <br><input type='text' name='name'><br>Class: <br><input type='text' name='class'><br>Level: <br><input type='number' name='level'><br><input type='submit' name='submit' value='Login'></form>
  16. MarkT

    GET(action)

    With GETYou need;To specify the method.and the action.The form will then (Upon submission) go to the urlIn your case;autocomplete.php?complete-field={INPUT HERE}then you can use getfor;$_GET['complete-field']and that will give you the variable defined in the URL by the form.
  17. Fav.cc is who I host my sites with,they put a small advert on your site, but unlimited bandwidth etc
  18. Hello,I'm coding in HTML,CSS & PHP.How do i code a popup like the ones on this forum? for example sending a private message?
  19. Hello,I'm experiencing a few problems with my CSS.i currently have;#search { width: 300px;height: auto;color: #FFF;margin-left: 30px;display: inline-block;}#bar {margin-left: -15px;margin-right: -15px;margin-top: -12px;width: 110%;height: 50px;background-color: #000;position: fixed;border-radius: 3px;padding-left: 15px;padding-right: 15px;padding-top: 12px;}#title {width: 200px;height: auto;margin-top: -10px;margin-left: 20px;background-color:#000;opacity: 0.5;border-radius: 2px;color: #FFF;} and HTML wise;<div id="bar"><div id="title"><h1 color="#FFF">PitchIT</h1></div><div id="search">Search Here</div></div> However,I get the 'PitchIT' text on the line,and the 'Search here' is on the line below, despite my display: inline; Any help?
×
×
  • Create New...