This may sound confusing but I have a textbox which is a cell number textbox and I want when the max length of 10 has been reached then fire the php code which is inside the same html page as form and this php code will then get the value or data which has been keyed in to this text box. I've tried Javascript and the problem I'm having with javasacript is to now display this data so that why I've deiced to change to php because I know how to display the php session data within the textbox with …

Member Avatar
Member Avatar
+0 forum 20

Hi everyone. I'm having a very seriouse problem where I have a textbox and I want a button and I want to take whatever a user type in this textbox/textarea and set it to the `data-name` which is a button's parameter. Here is the codes. Textarea: `<input type="text" id="dCell" value="Cellphone Number" maxlength="10" onkeypress="checkmax(this)" name="CellphoneNumber2" id="cCell" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Cellphone Number';}" required>` Button:`<button id="cCart" class="btn btn-danger my-cart-btn my-cart-b" data-id="16" data-name="testbutton" data-summary="summary 16" data-price="50" data-quantity="1" data-image="images/of15.png">Buy Airtime</button>` The code I tried: function checkmax(element){ if(element.value.length == 9){ //var idNumber = $('#dCell').val(); $(function() { $('dCell').change(function() { $('#cCart').data('data-name', this.value); …

Member Avatar
Member Avatar
+0 forum 7

<!doctype html> <html lang="en-US"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Empathy</title> <link href="template.css" rel="stylesheet" type="text/css"> </head> <body> <div class="container"> <header> <a href=""> <h4 class="logo"> <img src="page-1_2.png" width="113" height="28" alt=""/> </h4> </a> <nav> <ul> <li><a class="Abouth-Empath" href="empathy.html#about" >About Empath</a></li> <li><a class="How-It-Works" href="empathy.html#How">How It Works</a></li> <li> <a class="Contact" href="empathy.html#contact">Contact</a></li> </ul> </nav> </header> <section class="page1"> <h2 class="logo_header"> <img src="group.png" width="470" height="127" alt=""/></h2> </section> <section class="about" id="about" > <div class="left-side-sec"><blockquote> <h2 class="About-Empath"> About Empath <p class="aboutE"> Standard measurements — made for publishers, not brands — provide a singular view of performance. <p class="Empath-is-a-propriet">Empath is a proprietary tool that surveys audiences …

Member Avatar
Member Avatar
+0 forum 1

Hey everyone, I have been going over this in my head and can't seem to figure out the solution. I've got a database table called brands and in my form I'm trying to get it to where when I edit a brand, I can't edit it into an already existing brand. My code just automatically adds the new brand even though it exists as well as adds the existing brand as a new brand if I were to retype the existing brand. I hope that makes sense.. Basically I want to check if a brand exists in the database based …

Member Avatar
Member Avatar
+0 forum 4

Hi, I'm new to javascript that i didn't learn in college. My form can validate the first name, last name, and address line 1, but cannot validate the phone number and e-mail address. Can u help me to fix this? <!DOCTYPE html> <html> <head> <title>Plain form</title> <script> function validateForm() { // First name var fn = document.forms["form1"]["firstName"].value; if (fn == null || fn == "") { alert("First name must be filled out"); return false; } // Last name var ln = document.forms["form1"]["lastName"].value; if (ln == null || ln == "") { alert("Last name must be filled out"); return false; } …

Member Avatar
Member Avatar
+0 forum 5

Hi, I tried to get this code to work, and the gist is I am trying to allow the user to edit their inputs by allowsing them to edit past submissions. But even after I put "<?php echo ?>" tags in there, it still does not work. It worked perfectly fine on a previous script, but this one does not seem to want to work. I tried making sure it was not the variable, but the variable itself was passed. <?php include('mysqli_connect.php'); echo"Success"; echo '<a href="?logout"> Logout? </a>'; if(isset($_GET['logout'])) { header ("Location: enter_passcode.html"); } if(isset($_GET['pass'])) { $pass=$_GET['pass']; echo 'pass is …

Member Avatar
Member Avatar
+0 forum 3

i have followed a tutorial for a working checkbox group after failed attempts with others. On test file it was working but when i add it to my site i dont get any results after submitting form. First of all here is the file from tutorial. Sorry in advance for all the code. <?php require_once('connection.php'); ?> <?php if (isset($_POST['submit'])) { if (isset($_POST['check_list'])) { $strcheck_list = implode(",", $_POST['check_list']); } else { $strcheck_list = ""; } echo "Interested in: " . $strcheck_list; exit(); } ?> <html> <head> <title>Checkboxes</title> </head> <body> <form action="" name="check_list" method="post"> <table width="900"> <tr> <td width="225"><input type="checkbox" name="check_list[]" value="option1"><label>Option1</label></td> …

Member Avatar
Member Avatar
+0 forum 13

i need one form textbox value change, In that value pass into another form textbox in my website....

Member Avatar
Member Avatar
+0 forum 4

Dear All I have made a successful html form with mail.php "thing" my only problem is I want to be able to redirect to 2 different thank you pages based on a value entered in the html form. Value field is "Type1" and people can enter either burger, farm or shop Thank you..... this is my mail.php <?php $name = $_POST['name']; $bedrijfsnaam = $_POST['bedrijfsnaam']; $adres = $_POST['adres']; $plaats = $_POST['plaats']; $postcode = $_POST['postcode']; $email = $_POST['email']; $phone = $_POST['phone']; $socialemedia = $_POST['socialemedia']; $website = $_POST['website']; $Type1 = $_POST['Type1']; $type = $_POST['type']; $productendiensten = $_POST['productendiensten']; $productendiensten_anders = $_POST['productendiensten_anders']; $vragen = $_POST['vragen']; …

Member Avatar
Member Avatar
+0 forum 5

In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets and greater/lessthan symbols. Example: [Performer=Character]<gender.age>.<ethnicity.skin.tone>.<height>.<bodyhair>.<haircolor.hairlength.hairtexture>.<eye.color> etc...etc...etc... [Sylvester.Stallone=Rocky.Balboa]<male.man.guy.middle.aged.adult>.<white.Caucasian.Italian.medium.mid.tone.toned.skin>.<average.height.stature>.<bare.smooth.hairless.chest>.<black.medium.mid.length.wavy.hair>.<brown.eyed.eyes> etc... Currently, my boss has half the company using shortcut keys to type all of this in manual. Absolutely ridiculous!!! So over the weekend I broke out my old HTLM/Javascript books and tried to make a simple webpage/form w/ multiple dropdowns or checkboxes …

Member Avatar
Member Avatar
+0 forum 5

hi, I am changing my html web pages for website. my eclipse project is inside www directory. But I don't see html changes when I open web pages. I restarted server as well as eclipse many times. Still, the same result. Any Help, suggestion please?

Member Avatar
Member Avatar
+0 forum 3

I have to make a calculator on a site to determine a lump sum payout on life insurance, the user would enter all of 1. Gender, 2. Smoker or Not, 3. Monthly Payment. For each of the different variables there is a unique lump sum amount but no way of creating a formula to work out the different amounts, for each variant of answers how could i get the lump sum? Example: Gender: Male Non Smoker Monthly Payment: £5.00 Would return Lump Sum = £73,814.00 Example 2: Gender: Female Smoker Monthly Payment: £6.00 Would return Lump Sum = £90,921.00 Thanks …

Member Avatar
+0 forum 0

In my head, this seems so easy, but i cant seem to overcome it. I have an html page which includes a checkbox. I then have a jQuery code to display a hidden field when this box is checked. The hidden field is populated with a value that is calculated in a python script. This is all well and good, but instead of just the value been displayed i want a warning(text) to be shown too. My current html checkbox code is: [CODE] <tr> <td class="column1">Include Files:</td><td class="column2"><input type=checkbox name="getfiles" id="getfiles"></td><td><div id="hidden"></div></td> </tr> [/CODE] My current jQuery code for the …

Member Avatar
+0 forum 0

I'm trying to create a form where I can type in a piece of news as I would normally type and include links in the form [CODE]<a href="www.google.com">google</a>[/CODE] and have it preserve the formatting and display the link as a link when echoing back. My problem is that despite a fair amount of trying the above link would be coming back as something like wwww.mywebsite.com/\"www.google.com"\ when I echo the db contents. My code is as follows: [CODE] $title= mysql_real_escape_string($_POST[title]); $description= mysql_real_escape_string($_POST[description]); $article= $_POST[article]; $sql = "INSERT INTO news (title, description, article) VALUES('$title' ,'$description','$article')"; if(mysql_query($sql, $con)) { echo "<p>The news article …

Member Avatar
Member Avatar
+0 forum 1

hi i am working on servlet using eclipse IDE .i have attached html form. I am unable to format drop down list. how to do it. how to align the drop down list.please help.

Member Avatar
Member Avatar
+0 forum 3

The End.