Jump to content

Search the Community

Showing results for tags 'input'.

  • 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 (Dreamweaver, Zend, 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

Found 25 results

  1. Hi everyone, The following code is aimed to show "aaa aaa" as default value for input box in a form: <?php //xxx.php $db = mysqli_connect('localhost', '', '', ''); ?> <!DOCTYPE html> <html> <body> <form method="POST" action="xxx.php"> <input type="text" name="id" class="id_input" value=<?php echo 'aaa aaa';?>> </form> </body> </html>
  2. Hi, I am having a small issue with a front end html form, which through a series of looped input fields will update multiple WordPress posts at once, on submisson. The issue i'm having currently, is on submission it's only updating 1 post. I have found a solution to my problem, here: http://wordpress.stackexchange.com/questions/206372/how-to-handle-dynamic-form-data-with-repeating-fields But as i am still a bit of a novice, I have tried to apply the max_id solution to my code below, so far i've not got it to work. Using the solution on the above link, I don't suppose someone could show/tell me, what the code should be in it's entirety?? Including the foreach section, thanks! foreach( $testArray as $value ) { $post_information = array( 'post_title' => $value, 'post_status' => 'publish', // Choose: publish, preview, future, draft, etc. 'post_type' => 'predictions' //'post',page' or use a custom post type if you want to ); //update post wp_update_post($post_information);
  3. I've got an HTML 5 date input box working on my site. Anyone know how to make the whole thing selectable like a drop down (select) box? Currently you can only select it by clicking on the arrow at the far right of it. I don't mind about losing the cross or up and down arrows. I just want the field to be fully selectable like a drop down box. Any ideas please? Thanks.
  4. You know when you type text into a form input and it automatically types the same text in another div? Well I am trying to do the same thing but instead show the same text value from the div 1 to div 2. Here is my code. It works with the input text field but not with the textarea. Can you tell me why? <input type="text" name="title" id="title" value="" maxlength="55" /> <textarea name="details" id="details" value="" maxlength="160" ></textarea> <!-- Values show up in these inputs --> <input type="text" name="seo_page_title" id="seo_page_title" value="" maxlength="55" /> <textarea name="seo_page_description" id="seo_page_description" maxlength="160" ></textarea> <script> $('#title').on("input", function() { var dInput = this.value; console.log(dInput); $('#seo_page_title').val(dInput); }); $('#details').on("input", function() { var dInput = this.value; console.log(dInput); $('#seo_page_description').val(dInput); }); </script>
  5. I succeed to create the vertical data, but I just add checkbox in data table in PHP. I know how to set up the value in checkbox, but i can't figure how to put name and value that from database. for example, when you can see name list in columns, you click checkbox that which has name that selected data from database. here example in code: I can get value from outside of php in html: <input type="checkbox" name="???" value="<?php echo $data['Name'] ?>"> But I can't figure to set up the value that inside php: echo "<tr><td><input type="checkbox" name="???" value=?></td></tr>"; my point is I can use echo to print, but echo is used already, php cannot take two name code in same time, same line number. Can you help? If you want to see my full code in php, Let me know...I will put my code in next comment in this thread. Thank you so much! Gary Taylor
  6. I have a form that updates a total based on the fields values entered on a form when the user leaves each field. This works fine but I also want to update one of the entry fields which is a percentage of another. I have in my js var theForm = document.forms[frm]; var eTotal = theForm.elements["Total"]; var ePremium = theForm.elements["Premium"]; if (eTotal.value > 0) { var PremAmount = parseFloat(eTotal.value * ePremium.value / 100); } var divobj = document.getElementById('PremAmount'); divobj.innerHTML = PremAmount.toFixed(2); Which is called with onblur="addPrem('totals')" The original value in the totals field from the MySQL table is 770.00 This produces the following html page <input name="PremAmount" tabindex="1" class="ent" id="PremAmount" size="2" value="77.00"> When I change the total to 888.00 I get the following <input name="PremAmount" tabindex="1" class="ent" id="PremAmount" size="2" value="77.00">88.80</input> So it looks like it's working but writing a div rather than into the field itself Can anyone help me with this please
  7. I'm making my own CMS for my company so going through making the pages for the back end. What I want to do that I'm stuck on is -------------- I want to allow the user to specify how many input text fields they want shown on the page. I'm thinking that they could write a number then click submit, send the data to the same page (PHP self or action blank) and then the required amount of input fields would be echoed out. Echoing out is easy, I want to know how to find out how many fields are required, and then process it. Thanks in advance.
  8. Hello Codingforums, yet again I desire some help to my coding, this time regarding a paypal button. I'm working on a local project of mine in which I wish to let my costumers type the amount of quantities for a product they wish into a text box and then want it to automatically edit the amount of quantities on the paypal page. This works when I have the input inside the form, but due to my template I wish to have my quantity text box outside the "form" code of the paypal button but still want it to connect so that it changes. Let me explain with some code This is the working code for which i can enter the amount of quantities into a text box and it will automatically change it on the paypal page as well. <div id="payment" style="margin-top:10px;"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="TEXT" name="quantity" value="1"> <input type="hidden" name="hosted_button_id" value="C5P9LBML2FSC6"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1"> </form> </div> This is what I want it to do, I want to be able to put the input of the quantities text box onto another div and still be able to change the amount of quantities on paypal. (Doesn't change the amount of quantities when clicked on button) <div id="anotherdiv"> <input type="TEXT" name="quantity" value="1"> </div> <div id="payment" style="margin-top:10px;"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="C5P9LBML2FSC6"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1"> </form> </div> Thx in advance - rec0il
  9. Been trying to figure out...how can I delete the first input field box in a series? Under Presentations Requested, I want the delete the first short box. http://myiwma.org/wordpress1/reservation-form/ Lauren
  10. I read this article. About two thirds down it mentions that you can turn off autocomplete on the entire form if you put it in the form tag. The post is from 2011 though so I was wondering if it is still valid? Does anyone know if this is still correct? So, can I use something like; <form action="example.php" autocomplete="off"> First name:<input type="text" name="fname"> Last name: <input type="text" name="lname"> E-mail: <input type="email" name="email"> <input type="submit"> </form> Or do I need something like; <form action="example.php"> First name:<input type="text" name="fname" autocomplete="off"> Last name: <input type="text" name="lname" autocomplete="off"> E-mail: <input type="email" name="email" autocomplete="off"> <input type="submit"> </form> To be sure...
  11. Normally you can get input names from form using $_GET method. However, with a multi level dropdown, the php query files are called externally and through the js code. So I am wondering, what is the best way to get the input names of each dropdown? For eg. country, state, city. Getting the input name for the country is easy; how would I get it for the state and city if they are in a seperate php files? Do I get the input name in their own files and put them in a session?
  12. I need to check if the input is a valid email or not if the email is not valid then it would ask again for the mail address without refreshing the whole page. </script> <?php error_reporting(E_ALL); if($_POST['submit']=="India") { if(isset($_POST['EMAIL'])) { //only do file operations when appropriate $a = $_POST['EMAIL']; $myFile = "email_users.txt"; $d=date("d-m-y"); $r="\n"; $s=$_POST['submit']; $fh = fopen($myFile, 'a+') or die("can't open file"); fwrite($fh, $a.','.$d.','.$s.','.$r); fclose($fh); } } if($_POST['sub']=="Overseas") { if(isset($_POST['EMAIL'])) { //only do file operations when appropriate $b = $_POST['EMAIL']; $my = "email_users.txt"; $e=date("d-m-y"); $t="\n"; $u=$_POST['sub']; $f = fopen($my, 'a+') or die("can't open file"); fwrite($f, $b.','.$e.','.$u.','.$t); fclose($f); } } //header("location:http://www.xyz.com"); ?> Please help me urgently Thanks in advance
  13. Hi everybody, I am writing an inventory system using PHP+MySQL. The system provides simple functions like Insert, Display, Update and Delete for the user to choose in Page 1. However, for Display, Update and Delete, users then have to enter the product ID in page 2, but not for the Insert function, which should directly jump to Page 3 for inserting the item specifics. As the different functions can go to different pages, in Page 1, I don't think I shall put all these function choices as radio buttons in the same form. One solution is to implement these 4 choices as 4 submit buttons, i.e. 4 forms are created. However, to differentiate among Display, Update and Delete, I need the HTML of Page 1 to carry some values to Page 2 depending on which submit button is being chosen, but apart from the choice of the 4 functions, users do not need to input anything else in Page 1. Hence I need a hidden input type, like this: <form name='1' action='Page3.php' method='post'> <!-- Insert will skip Page 2 --> <input type='Submit' value='Insert'> </form> <form name='2' action='Page2.php' method='post'> <input type='hidden' name='function' value='Display'> <input type='Submit' value='Display'> </form> <form name='3' action='Page2.php' method='post'> <input type='hidden' name='function' value='Update'> <input type='Submit' value='Update'> </form> <form name='4' action='Page2.php' method='post'> <input type='hidden' name='function' value='Delete'> <input type='Submit' value='Delete'> </form> So in Page 2, I can know which button is clicked from $_POST['function']. I believe this works, but is it a good practice? If not, is there any better solution? Thanks! -- pengi <(")
  14. Hi! I read that for security reasons, the ideal is that the form data is validated two times ever. The first on the client side with javascript code and a second time on the server side with PHP code. The validation with javascript I have (almost) ready. However, I'm having problems with PHP validation ... <html> <head> <title>Formulario</title> <script type="text/javascript"> function frmRegisterValidate (){ var frmRegisterError = document.getElementById("frmRegisterError"); var frmRegisterUN = document.getElementById("frmRegisterUN").value; var frmRegisterPW = document.getElementById("frmRegisterPW").value; if (frmRegisterUN == "") { frmRegisterError.value = "Type your username"; return false; } else if (frmRegisterPW == "") { frmRegisterError.value = "Type your password"; return false; } document.getElementById("frmRegister").submit(); } </script> </head> <body> <form method="post" action="frmRegister.php" id="frmRegister" name="frmRegister" accept-charset="utf-8"> <label>Nombre de usuario: </label> <input type="text" id="frmRegisterUN" value="" name="frmRegisterUN" /> <br /> <label>Informe una contrasena: </label> <input type="text" value="" id="frmRegisterPW" name="frmRegisterPW"> <br /> <label>Se encontro un error: </label> <input type="text" value="" id="frmRegisterError" name="frmRegisterError"/> <br /> <input type="button" value="REGISTER" id="frmRegister_Button" onClick="frmRegisterValidate ()"/> </form> </body> </html> <?php if (!empty ($_POST['frmRegisterUN'])) { $frmRegisterUN = $_POST['frmRegisterUN']; } else { $frmRegisterUN = NULL; echo "Type your username <br />"; } if (!empty ($_POST['frmRegisterPW'])) { $frmRegisterPW = $_POST['frmRegisterPW']; } else { $frmRegisterPW = NULL; echo "Type your password <br />"; } ?> This is a very simplified version of the form that I am developing. As you can see, I can do data validation in both javascript and PHP ... My question is: with the PHP code, how should I do so that the error message is displayed in the value of the input called frmRegisterError equal to that done with javascript?
  15. Hello, before i start please sorry for my english, I'm not from english speaking country so my english is not that good. my Question: is there any possibility to put 2 or more values in one input type ? I making something like ordering-system. you can imagine it like : You want buy monitor and there is 3 radio inputs for 19" screen, 22" screen and 24" and next to them are pices: ○ 19" screen - 1100 dollars ○ 22" screen - 1200 dollars ○ 24" screen - 1300 dollars And when i click 'submit' i want to show on another page form.php see what he chose so for example its shows 24" screen - 1200 dollars And there is problem. In <input> is just one value (only for price or name of product - screen in my case) I have this code but it shows only price in form.php : <input type="radio" name="xxx" value="1100 dollars" onclick='check_value(this, 1)'"> (that onclick='check_value(this, 1)' is javascript counting system its irelevant) and in form.php <? echo $_POST["xxx"]; ?> Why? This what i posted works but its only show in form.php '1100 $ dollars' but i want to for example : mac book - 1100 dollars. my idea is something like this : <input type="radio" name="xxx" value="1100 dollars" value2="macbook" onclick='check_value(this, 1)'"> and when i confirm it i want in form.php macbook 1100 dollars I tried it with this code: <input type="radio" name="xxxcena" value="PRICE" onclick='check_value(this, 1)' /> <input type="text" name="xxxtyp" value="PRODUCT" hidden /> and in post.php <tr bgcolor="#f0f8ff"> <td> <? echo $_POST["xxxcena"]; ?> </td> <td> <? echo $_POST["xxxtyp"]; ?> </td> </tr> But it dont work (only shows one product no matters what i chose from my options in form). Please if its not possible can you tell me how to do it? Once again im very sorry for my bad english and i hope someone of you understand what i need. Thanks for any help. -exer
  16. Hey fellas, I recently decided to start my personal database on monsters in a game and have a website with forms etc where I can enter new monsters. Now I've made a start, but I'm getting a line 15 error when trying to execute the form without having an input button ticket. The file including the form that's related to the error (newmonster.php): </tr><tr> <td>Attribute:</td> <td><input type="radio" name="attribute" value="dark" />Dark <input type="radio" name="attribute" value="earth" />Earth <input type="radio" name="attribute" value="fire" />Fire <input type="radio" name="attribute" value="light" />Light <input type="radio" name="attribute" value="water" />Water <input type="radio" name="attribute" value="wind" />Wind</td> And this is the part of the file it's submitting the form to: Line 15 is the line between $type and $attack. The one with $attribute declaration. function invoer_schoonmaken($tekst) { $tekst = strip_tags($tekst); $tekst = htmlspecialchars($tekst); return $tekst; } $naam = invoer_schoonmaken($_POST["naam"]); $type = invoer_schoonmaken($_POST["type"]); $attribute = invoer_schoonmaken($_POST["attribute"]); $attack = invoer_schoonmaken($_POST["attack"]); $defense = invoer_schoonmaken($_POST["defense"]); $stars = invoer_schoonmaken($_POST["stars"]); $description = invoer_schoonmaken($_POST["description"]); $booster = invoer_schoonmaken($_POST["booster"]); The error is gives: So basically, what have I done wrong with the coding here? I'm not skilled in php in any way so I'm just trying to brush it up a bit with some MySQL later, so any constructive help would be greatly appreciated.
  17. Hi, I'm trying to create a script that will redirect to a url from a form input. Basically I have a page: http://mydomain.com/page (no .html or php etc) and I have an input box on my site - I want someone to be able to type in Joe Blogs and I'm looking to simply redirect to: http://mydomain.com/page/Joe%20Blogs How can I do this?
  18. Hi there, First, thank you for your interest in my problem, I appreciate your time. I have a small form that is populated with records from a mysql database using php. I have three <input>'s which have the name attribute set to an array in case there is more than one record. The problem I'm having is for some reason the $adate (which is === "2013-01-01") gets broken down into 10 parts of an array. I don't get it, I've used this exact same setup on 5 or 6 other pages and it doesn't do this. Just to be clear, when I echo out $date, it looks like this: $date[$i] = 2 And when I run through it, it looks like this: $date[0] = 2 $date[1] = 0 $date[2] = 1 $date[3] = 3 $date[4] = - $date[5] = 0 $date[6] = 1 $date[7] = - $date[8] = 0 $date[9] = 1 What I'm expecting, and wanting, is this: $date[$i] = 2013-01-01 Here is my form code: <form method="post" action=""> <table cellpadding="4" cellspacing="0" border="1" id="wod_tracking_form"> <tr align="center"> <td colspan="3"><?php echo $wod_name; ?> Tracking Form</td> </tr> <tr align="center"> <td class="bold">Date Worked</td> <td class="bold">Notes</td> <td class="bold">Entered By</td> </tr> <?php for($i = $fromTIME; $i <= $toTIME; $i = strtotime('+1 day', $i)) { $adate = date('Y-m-d',$i); $bdate = date('M jS Y',$i); echo "<tr>"; echo "<td align=\"center\"><input type=\"hidden\" name=\"wod_date[]\" value=\"" . $adate . "\">" . $bdate . "</td>"; echo "<td><textarea name=\"wod_note[]\" style=\"resize:none;\" maxlength=\"255\" cols=\"25\" rows=\"3\"><textarea></td>"; //Change the value below once the admin area has been created. Use the session admin id here. echo "<td align=\"center\"><input type=\"hidden\" name=\"wod_admin\" value=\"10845\">10845</td>"; echo "</tr>"; } ?> <tr align="center"> <td colspan="3"><input type="submit" name="wod_submit" style="width:100px;" value="SUBMIT"></td> </tr> </table> </form> Here is my code for inserting it into the database: <?php if(isset($_POST['wod_submit'])) { $wod_date = $_POST['wod_date']; $note = $_POST['wod_note']; $admin = $_POST['wod_admin']; $i = 0; foreach($wod_date as $date) { $sql = ("INSERT INTO wod_tracking (Emp_ID, WOD_Date, WOD_Note, WOD_Admin) VALUES ('$emp_id', '$date[$i]', '$note[$i]', '$admin')"); if(!$result_sql = $mysqli->query($sql)) { die ("There was a problem inserting the records into the wod_tracking table. mySQLI Error: " . $mysqli->error . ""); } $i++; } die; //unset($_SESSION['wod']); //redirect_to($url); } ?> I don't know if this is because it's in a date format, or what, but it's causing me a lot of confusion, I would really appreciate some help on this one. Cheers! ~FOX~
  19. I hate to ask for help for my first, but I am currently having issues writing out a code for a program in progress. Basically, I am not great at php, but I need a code that will store information when sent to it from the program itself. I am setting it up to store login information, so the program writes out (lets say the username), when the person clicks the 'Next' button, it sends it to the .php and the .php will write that certain file out with the username as the .txt file name. I have this so far, if someone could figure out the code, that would be amazing. Thanks! <?php $msg = $_GET['w']; $logfile= (['username.txt'); $fp = fopen($logfile, "a"); fwrite($fp, $msg); fclose($fp); ?>
  20. Hi, I've been searching the web for the past couple days and I have been unable to find a solution. I'm currently reading jscolor.js to try and see how they do it but still at loss in understanding it. Basically I'm trying to make my input field not lose focus. If you look at the inputs here: http://jscolor.com/example01.php When you select the colors the focus is not lost while selecting a color. Anyone have any Ideas on how I'd go about doing this with out it being some tacky onmouseover focus() etc. Any help would be much appreciated, thank you!
  21. I think I know the answer to this, but am hoping someone can help me. Here is the button code: <form action='writing.php' method='get'><input type='submit' class='sbmt' value='Journalism' name='lnk' /></form> I want the button value to be "Journalism," but I would like it if the text sent in the $_GET request was shortened to four letters, for example 'jour'. I have other links like this one that have spaces in the text and I don't want that in my links. My goal is to have a link that loads a new script and specifies a single four letter variable. I could use $_POST, but thought I would check with the experts and see if anyone had a suggestion that would work given the current set up. Can anyone think of a way to make that happen?
  22. Hello all, I'm fairly new to php, and can't figure this thing out: Mysql design: Table_users: ID,USERNAME 1,Name1 2,Name2 Table_comments: ID,USERNAME_ID,COMMENT 1,1,"Comment 1" 2,1,"Comment 2" I use a for loop to fill a form with <input type=”text”> So i have the following output: Name: Name1 Comments:(input type=text) Comment 1|Delete? Comment 2|Delete? |Add I want to be able to edit the existing comments, or add a new comment. How can I?: -list all the comments, and display one extra <input> form for a new comment -make sure that if i edit both “comment 1” and “comment 2” all gets executed as a mysql command -perhaps make it possible to edit “comment 1” and the new blank “comment 3” at the same time If anyone can help me out, it would be great Thanks in advance. Luuk
  23. I am looking for suggestions and code samples to get a file and load it into a text area. Let me give a bit more of a detail. My code searches for a file, and with in that file there is a array for additional CSS files. I am looking for a way to get the CSS file to be loaded to a text-area once you click on a button. Every file contains this: $CSS = array(file.css); Now, how can I get: <a href="file.css">CSS</a> or <button onclick="myFunction()">CSS</button> To load here: <textarea id="filecontent" name="filecontent" cols="80" rows="10">".$filecontent."</textarea>
  24. Hello I am looking for some help in trying to generate a dynamic table, where each row is an input field, based on the input from another field.. So, I have an input field called number, which will allow me to enter a number I then want to generate a table with that number of input fields Can someone help? Thanks
  25. Preface: I again apologize in advance earlier to the people who thought I was writing a Scam PHP page. I should have informed it was a teacher written assignment. Hi guys so Im writing these two php webpages : one is a signup page which is a mock 'dating site' : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>NerdLuv</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <link href="heart.gif" type="image/gif" rel="shortcut icon" /> <link href="nerdluv.css" type="text/css" rel="stylesheet" /> </head> <body> <div id="main"> <div id="bannerarea"> <img src="nerdluv.png" alt="banner logo" /> <br /> where meek geeks meet </div> <div id="matches"> <h1>Matches for User Name</h1> <div class="match"> <p class="name"> <img src="images/ada_lovelace.jpg" alt="Ada Lovelace" /> Ada Lovelace </p> <p class="info"> <strong>gender:</strong> F <br /> <strong>age:</strong> 96 <br /> <strong>type:</strong> ISTJ <br /> <strong>OS:</strong> Linux <br /> <strong>rating:</strong> 4 </p> </div> <!--End of first match case ada lovelace --> <div class="match"> <p class="name"> <img src="images/grace_hopper.jpg" alt="Grace Hopper" /> Grace Hopper </p> <p class="info"> <strong>gender:</strong> F <br /> <strong>age:</strong> 87 <br /> <strong>type:</strong> ISFP <br /> <strong>OS:</strong> Windows <br /> <strong>rating:</strong> 4 </p> </div> <!-- end of second match case --> </div> <!-- Div id matches--> <!--This reads the singles text file and prints them to the results page --> <!--<?php include("singles.txt"); ?> --> <p> </p> <div id="w3c"> <a href="http://validator.w3.org/check/referer"> <img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" /></a> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS" /></a> </div> </body> </html> the other is a results page which will display the appropriate match according to user input : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR...D/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>NerdLuv</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <link href="heart.gif" type="image/gif" rel="shortcut icon" /> <link href="nerdluv.css" type="text/css" rel="stylesheet" /> </head> <body> <div id="main"> <div id="bannerarea"> <img src="nerdluv.png" alt="banner logo" /> <br /> where meek geeks meet </div> <div id="matches"> <h1>Matches for User Name</h1> <div class="match"> <p class="name"> <img src="images/ada_lovelace.jpg" alt="Ada Lovelace" /> Ada Lovelace </p> <p class="info"> <strong>gender:</strong> F <br /> <strong>age:</strong> 96 <br /> <strong>type:</strong> ISTJ <br /> <strong>OS:</strong> Linux <br /> <strong>rating:</strong> 4 </p> </div> <!--End of first match case ada lovelace --> <div class="match"> <p class="name"> <img src="images/grace_hopper.jpg" alt="Grace Hopper" /> Grace Hopper </p> <p class="info"> <strong>gender:</strong> F <br /> <strong>age:</strong> 87 <br /> <strong>type:</strong> ISFP <br /> <strong>OS:</strong> Windows <br /> <strong>rating:</strong> 4 </p> </div> <!-- end of second match case --> </div> <!-- Div id matches--> <!--This reads the singles text file and prints them to the results page --> <!--<?php include("singles.txt"); ?> --> <p> </p> <div id="w3c"> <a href="http://validator.w3....check/referer"> <img src="http://www.w3.org/Ic.../valid-xhtml11" alt="Valid XHTML 1.1" /></a> <a href="http://jigsaw.w3.org...check/referer"> <img src="http://jigsaw.w3.org...or/images/vcss" alt="Valid CSS" /></a> </div> </body> </html> I was thinking ultimately to implement POST methods with a function to retrieve the data and POST but at this point Im totally lost...... If I just implement a form action post it will obviously need something on the other php page to recieve it . But thats not how its setup, ill need a way to send the user data have it check the data in a textfile(which is what results.php displays from, and also write the user data in the same file ) then once results.php processes it shows the "suitable" matches according to user input ..Im coming short in development time so any help would be great.. Thanks
×
×
  • 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.