Jump to content

Search the Community

Showing results for tags 'html'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

  1. I have a table contained by a form. Each row of the table contains the following data cells: <td> <input type='text' name='cart[ccr-01-002]' size='2' /> </td> <td> <input type='checkbox' name='delete[ccr-01-002]' /> </td> Rather than returning whether or not the checkbox is checked (such as ON or OFF), it is instead returning the value of the text input field. Here is how I am trying to reference it: var_dump($_POST['delete']); This prints out the string contents of the text fields instead of ON or OFF. Is it possible (without having to put the checkbox into its own form) to reference the checkbox as a separate entity from the text input? I would like to reference $_POST['cart'], and not have it affect $_POST['delete']. Please let me know if you need any other information!
  2. I got a script from somewhere on google and found that it contains a "dynamic div" tag i.e see below <div id="ad<?php echo $fn; ?>"> // [color=#ff0000]This is the place where i'm facing problem...[/color] <a href="index.php?tp=visit_task&t=<?php echo $fn; ?>&id=<?php echo $fn; ?>" target='_blank' onclick='hideDivTag("ad<?php echo $fn; ?>");'><?php echo $fsitename; ?></a> ( You earn: <?php if($fpaytype=='points') { ?><?php echo $prise; ?> <?php echo $setupinfo['pointsName']; ?>(s)<?php } else if($fpaytype=='usd') echo $setupinfo['currency']."$prise"; ?> ) <BR /><BR /></div><?php $clicks++; } } } ?><br /> </div> when this code is seen in browser it looks like this <div id="ad44"> <a href="index.php?tp=visit_task&t=44&id=44" target='_blank' onclick='hideDivTag("ad44");'>Google</a> ( You earn: Rs 0.001000 ) <BR /><BR /></div> <div id="ad45"> // [color=#ff0000]This One[/color] <a href="index.php?tp=visit_task&t=45&id=45" target='_blank' onclick='hideDivTag("ad45");'>156</a> ( You earn: Rs 0.001000 ) <BR /><BR /></div> <div id="ad47">// [color=#ff0000]This One[/color] <a href="index.php?tp=visit_task&t=47&id=47" target='_blank' onclick='hideDivTag("ad47");'>123</a> ( You earn: Rs 0.001000 ) <BR /><BR /></div> <div id="ad49"> //[color=#ff0000]This One[/color] <a href="index.php?tp=visit_task&t=49&id=49" target='_blank' onclick='hideDivTag("ad49");'>789</a> ( You earn: Rs 0.001000 ) <BR /><BR /></div> <div id="ad50"> //[color=#ff0000]This One[/color] <a href="index.php?tp=visit_task&t=50&id=50" target='_blank' onclick='hideDivTag("ad50");'>459</a> ( You earn: Rs 0.001000 ) <BR /><BR /></div><br /> <br /> </div> see that every div tags automatically assigns a number beside it.. I want to add new style of this div but can't do that as it is changing randomly whenever new ads is posted and i also can't find the #ad in the .css also..... can anyone help me.... Thanks in advance...
  3. Hi, I am creating menu using jquery-mega-drop-down-menu-plugin. I am stroing menu items in database and want to create html sturcture dynamically by looping over resultset I have attached working example. Following html need to create dynamically. <li><a href="#">Home</a></li> <li><a href="#">About Us</a> <ul> <li><a href="#">Menu Item 1</a></li> <li><a href="#">Menu Item 2</a></li> </ul> </li> <li><a href="#">Services</a></li> <li><a href="#">Contact us</a></li> Database Table for menu items as follow CREATE TABLE `headermenu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(300) DEFAULT NULL, `parentid` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 Any solution? Thanks for time and efforts in advance. - Thanks Zohaib. menu.zip
  4. How to make a datalist in javascript. Html datalist does not work in old browser so i want to make a datalist in javascript.please help me.
  5. Hi all, I'm trying to get the text "Borrow:", "+ Interest:" and "= You repay*:" to stay fixed while the values that displayed via javascript in the span tags change. The values in the span tags can have different lengths which means at the moment the text doesn't stay fixed. Anyone know how I can get the text to stay fixed while the values change? I've tried setting it to "absolute" but when the page is zoomed in on the text doesn't stay inline with the rest of the page. HTML: <div id="sliderToolResults_Borrow">Borrow: <span id="resultRequested" class="sliderResultBorrow"></span> </div> <div id="sliderToolResults_Interest"> + Interest: <span id="resultInterest" class="sliderResultInterest"></span> </div> <div id="sliderToolResults_Repay"> = You repay*: <span id="resultTotal" class="sliderResult"></span> </div> CSS: #sliderToolResults_Borrow { position:relative; left: 50px; top: -30px; font-style:italic; float: left; } #sliderToolResults_Interest { position:relative; left: 70px; top: -30px; font-weight: 100; float: left; } #sliderToolResults_Repay { position:relative; left: 140px; top: -30px; font-weight: 100; float: left; } #sliderrepay { position: absolute; } #sliderBorrowResult { color: #ff9900; position:relative; left: 45px; bottom: -5px; } #sliderInterestResult { color: #ff9900; position:relative; left: 45px; bottom: -5px; } #sliderRepayResult { color: #ff9900; position:relative; left: 450px; bottom: -5px; } Any ideas? Any help would as always be appreciated. Cheers, CaptainChainsaw
  6. cmb

    Html Email

    Im trying to send a html email when i do this locally using mercury mail it works fine. Once i uploaded it and tried sending a email to gmail and yahoo it didn't work this is my php code <?php $from = $_REQUEST['from']; $to = $_REQUEST['to']; $bcc = $_REQUEST['bcc']; $subject = $_REQUEST['subject']; $message = $_REQUEST['msg']; // To send the HTML mail we need to set the Content-type header. $headers = 'From: ' . $from . "\nReply-To: ". $from ."\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'Bcc:' . $bcc . "\r\n"; // now lets send the email. mail($to, $subject, $message, $headers); print json_encode( "Message has been sent....!"); ?> this is the html i was trying to send (i also tried something simpler and that didn't work either) <html> <body style="background-color: #000;"> <table> <tr> <td id="pinkpanthers" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="http://www.photosbychristian.com/pinkpanthers/index.php" style="text-decoration:none;color: #fff;">Pink<br />Panthers</a></td> <td id="gbsa" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="http://www.photosbychristian.com/gbsa/index.php" style="text-decoration:none;color: #fff;">GBSA</a></td> <td id="elite" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="http://www.photosbychristian.com/elite/index.php" style="text-decoration:none;color: #fff;">Elite</a></td> <td id="THS" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="http://www.photosbychristian.com/THS/index.php" style="text-decoration:none;color: #fff;">THS</a></td> <td id="HDR" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="#" style="text-decoration:none;color: #fff;">HDR</a></td> <td id="family" style="border: 2px solid #393;padding: 40px 40px; width: 100px;border-radius: 25px; color: #000; background-color: #393;font-size: x-large;"><a href="#" style="text-decoration:none;color: #fff;">Family</a></td> </tr> <tr> <td colspan="6"> <p style="color: #fff; text-align:center;">Text will go here</p> </td> </tr> </table> </body> </html> this is the headers from gmail Delivered-To: cmbswim@gmail.com Received: by 10.194.21.41 with SMTP id s9csp621144wje; Sun, 14 Oct 2012 18:02:53 -0700 (PDT) Received: by 10.66.86.42 with SMTP id m10mr29016349paz.3.1350262972933; Sun, 14 Oct 2012 18:02:52 -0700 (PDT) Return-Path: <christianbasse@p3nlhg198.shr.prod.phx3.secureserver.net> Received: from p3nlsmtp20.shr.prod.phx3.secureserver.net (p3nlsmtp20.shr.prod.phx3.secureserver.net. [72.167.234.245]) by mx.google.com with ESMTP id bc7si3012631pab.65.2012.10.14.18.02.52; Sun, 14 Oct 2012 18:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of christianbasse@p3nlhg198.shr.prod.phx3.secureserver.net designates 72.167.234.245 as permitted sender) client-ip=72.167.234.245; Authentication-Results: mx.google.com; spf=pass (google.com: domain of christianbasse@p3nlhg198.shr.prod.phx3.secureserver.net designates 72.167.234.245 as permitted sender) smtp.mail=christianbasse@p3nlhg198.shr.prod.phx3.secureserver.net Received: from p3nlhg198.shr.prod.phx3.secureserver.net ([97.74.24.198]) by p3nlsmtp20.shr.prod.phx3.secureserver.net with id BD2n1k0044GSV4Z01D2nXS; Sun, 14 Oct 2012 18:02:52 -0700 Received: from p3nlhg198.shr.prod.phx3.secureserver.net (localhost [127.0.0.1]) by p3nlhg198.shr.prod.phx3.secureserver.net (8.14.4/8.12.11) with ESMTP id q9F12b5Q001356 for <cmbswim@gmail.com>; Sun, 14 Oct 2012 18:02:42 -0700 Received: (from christianbasse@localhost) by p3nlhg198.shr.prod.phx3.secureserver.net (8.14.4/8.14.4/Submit) id q9F12b7P001352; Sun, 14 Oct 2012 18:02:37 -0700 Date: Sun, 14 Oct 2012 18:02:37 -0700 Message-Id: <201210150102.q9F12b7P001352@p3nlhg198.shr.prod.phx3.secureserver.net> To: cmbswim@gmail.com Subject: Sample From: christian@photosbychristian.com Reply-To: christian@photosbychristian.com MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1
  7. This is most likely a fairly simple problem, but I'm new and definitely not the best programmer and I could use some of the experience you all have on this forum. Basically I need to make an application that quotes the user on how much their catering order will be based on their selections and the number of people that will be "attending". Right now I have all the html pages, but I have trouble understanding how exactly to link them all together and keep track of all the information needed. I will present my project, and then ask my specific questions at the end. On the first page, the user inputs the number of attendants, and selects with radio buttons whether it will be a cocktail party or a full event. When submitted, the user will be taken to another page, either for the cocktail or full event. They then make some selections on the appropriate page, submit the info, and get moved to the bar options page. when that is completed the user goes to the final quote page where they will be quoted with the prices from each individual page, and it will be totaled and presented to the user. Also, at any point, the user needs to be able to cancel their order ad be taken back to the first page. My questions as of right now are how I link the pages while still evaluating everything in php? Like I said I’m not the best programmer and don’t have the best professor. Any and all help is greatly appreciated.
  8. Hi there, I downloaded a form which originally had fields such as Name, Email & Message (it worked then!!). I have updated fields and also updated the PHP file to the best of my knowledge but now it doesn't work? I asked the person who created the form for help and he replied with this... "PHP script used to work contact form in Incredible will be difficult to modify, so I’ll recommend to use your own script. I had problems too with this script (I’m not PHP expert)." Can anyone help me with this and give me the correct coding that will make this form work? I have attached both the html and PHP file i have. Many thanks David contact-us.html contact.php
  9. kind of a beginner php coder here here is my problem: i have a table in mysql that stores events (id, name, start_time, duration (hours), gamemaster, table) sample data: 001, "Clay Wars", 2012-10-10 09:00, 3, "John Smith", "MIN1" 002, "Fistful of Minis", 2012-10-10 13:00, 2, "Abe Llincoln", "MIN1" 003, "Hero Clix", 2012-10-10 11:00, 3, "Tony Stark", "MIN2" 004, "Settlers of Catan", 2012-10-10 09:00, 1, "Jane Doe", "BG1" 005, "Ad Astra", 2012-10-10 10:00, 3, "Abe Lincoln", "BG1" 006, "Innovation", 2012-10-10 09:00, 2, "Tony Stark", "BG2" 007, "Mech Warrior", 2012-10-10 10:00, 2, "Jane Doe", "BG3" 008, "Manhattan Project", 2012-10-10 12:00, 2, "Al Einstein" "BG3" i need to write something that will read through the table and dynamically build an events page for convention attendees. last year i dynamically built the table with php reading from the db, however it was a simple table that listed the name of each event in the hour slot it started. 9am Clay Wars Settlers of Catan Innovation 10am Ad Astra Mech Warriors 11am Hero Clix 12pm Manhattan Project 1pm Fistfull of Minis this year i want to graphically represent how long the event lasts, so attendees can better plan their days. ideally like: Table 9am 10am 11am 12pm 1pm 2pm MIN1 ClayWars Fistfull of Minis MIN2 Hero Clix BG1 Settlers of Catan Ad AStra BG2 Innovation BG3 Mech Warrior ManHattan Project i'm having trouble figuring out how to accomplish this. i was thinking that i could adjust the colspan for each event based on the duration, but how to put everything together in one table row?
  10. Hi Everyone, I have a text box, with an address which visitors need to copy into another application. I have the text box, this has the text inside. All I need now is a button that says 'copy' and when you click it, wola! However, the real world hasnt worked this way for me . The code I have is; <script type="text/javascript"> function ClipBoard() { if (window.clipboardData) { alert("copied"); window.clipboardData.setData("Text",document.form1.name.value); } } </script> <form name="form1" method="post" action=""> <input name="name" type="text" class="inputtext" onclick="highlight(this)" id="name" value="<?php echo "$contents";?>"> <BUTTON onclick="ClipBoard()">Copy</BUTTON> </form> I dont understand why this wont work... Any help would be greatly apreciated. Thanks.
  11. Helllo: Need to add the html tag <li>...</li> to this plz: preg_match('/^[a-z0-9_\/a\-\ ]+$/si',$va1) Thanks.
  12. Hello I'm new to PHP and mySQL, I am trying to populate a database created using MySQL Workbench using information submitted via a form in my website. I have followed as many tutorials as i can and there appears to be an error in the php file, but i'm not sure what it is. my form is coded like this: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <form id="quizCreator" name="quizCreator" method="post" action="insert.php"> <p> <label>Quiz Title </label> <br /> <input type="text" name="quizTitle" id="quizTitle" /> <p> <label>Describe your Quiz<br /> <textarea name="desc" id="desc" cols="45" rows="5"></textarea> <br /> </label> <p> <label>Question <br /> <input type="text" name="question" id="question" /> </label> <p> <label>Answers <br /> 1. <input type="text" name="answer1" id="answer1" /> </label> <label> <input type="radio" name="radio" id="radio1" value="1" /> </label> <p>2. <label> <input type="text" name="answer2" id="answer2" /> </label> <label> <input type="radio" name="radio" id="radio3" value="1" /> </label> <p>3. <label> <input type="text" name="answer3" id="answer3" /> </label> <label> <input type="radio" name="radio" id="radio3" value="1" /> </label> <p>4. <label> <input type="text" name="answer4" id="answer4" /> </label> <label> <input name="radio" type="radio" id="radio4" value="1" /> </label> <br /> <p> <input type="Submit" name="nextPage" id="nextPage" value="Submit" /> </form> </body> </html> and my php file is like this: <?php // CONNECT TO MYSQL SERVER $con = mysql_connect("localhost","dinita","**********"); if (!$con) { die('Could not connect: ' . mysql_error()); } // SELECT DATABASE mysql_select_db("quizCreator", $con); // CLEAN THE POST VALUES FROM THE FORM $title = clean($_POST['quizTitle']); $desc = clean($_POST['desc']); $question = $_POST['question']; $ans1 = clean($_POST['answer1']); $ans2 = clean($_POST['answer2']); $ans3 = clean($_POST['answer3']); $ans4 = clean($_POST['answer4']); $correct = clean($_POST['radio']); // CREATE SQL QUERY $sql="INSERT INTO quiz (quiz_name, quiz_desc) VALUES ('$title','$desc')"; $sql="INSERT INTO question (question_body) VALUES ('$question')"; $sql="INSERT INTO answer1 (answer) VALUES ('$ans1')"; $sql="INSERT INTO answer2 (answer) VALUES ('$ans2')"; $sql="INSERT INTO answer3 (answer) VALUES ('$ans3')"; $sql="INSERT INTO answer4 (answer) VALUES ('$ans4')"; $sql="INSERT INTO correct (correct_ans) VALUES ('$correct')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Quiz submitted sucessfully"; mysql_close($con); ?> I'm sorry if I havent explained my self well, Thanks for any help you can offer Dinita
  13. i wanna start designin an index.html page and this is the first time im doing it , i want to cut the page elements into a bunch of div tags then filling them with whatever i want later , i just want to know what im doing wrong and what right and how to make the code work for any screen size ! any comment about the code will be helpful cuz i want to move on and fill everything and i dont want to make some big mistake now ! index_off.html index_off.css
  14. Alright so at my site (http://independentrepublicofursum.tk/) The facebook social plugin is in the "sidebar" on every page, I don't like how my twitter link loads, then the plugin spawns and pushes it down. I tried to put a div around the plugin with a set height and width so that it would no something is there before the plugin loaded, but no cigar. Help please!
  15. I have a simple user bio section on my web site. As of right now everything works fine except that the bios are not formatted and I want to remove any html that the user adds. I know that strp_tags is used to remove html but wasn't sure if I could used that along side adding my own html. The html that I am looking to add is <P> and <br> to properly format them. this is the form that I have that <form id="update_profile"> <textarea name="BIO" cols="50" rows="6"><?php echo $bio; ?></textarea><br> <span class="rulemain">Your Favorite drink: </span><br> <input type="text" name="FAV_DRINK" value="<?php echo $fav_drink; ?>" > <br> <input type="radio" name="SHARE_EMAIL" value="1" > <span class="rulesub">Share my email.</span><br> <input type="hidden" name="USER_ID" value="<?php echo $name; ?>"> <input type="submit" value="Update Profile"> </form> Here is what the update string looks like <?php include"scripts/connect.php" ; mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $bio= mysql_real_escape_string($_POST['BIO']); $user = mysql_real_escape_string($_POST['USER_ID']); $drink= mysql_real_escape_string($_POST['FAV_DRINK']); $share_email= mysql_real_escape_string($_POST['SHARE_EMAIL]); $error = ''; $userquery = mysql_query("SELECT * FROM user WHERE (username='$user')"); $sql = ("UPDATE user SET bio='$bio', drink='$drink', show_email='$share_email' WHERE username='$user'") or die (mysql_error()); $query = mysql_query($sql);
  16. Hi, I am hoping to start up a micro-republic named The Independent Republic of Ursum. Obviously the site is going to be making the first impression and I want it to be a good one. Don't comment on the .tk domain...I know. Only the homepage is done. I wan't to know if my layout is good before I work on the rest. Scrap it or is it good? theindependentrepublicofursum.tk
×
×
  • 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.