Welcome to Php Forms Script News
Meridian4 and Headup Games are Looking to the Future! - Gamasutra
We know that this title will do well and will have a wide appeal to all types of gamers ... A publishing company, with new ideas and a different approach to forming partnerships with developers, Meridian 4 aims to actually form a partnership – a ...
Read moreHost Color Adds osTicket Support System to Hosting Plans - PR-USA.net
... says Alexander Avramov, Marketing ... OpenX ad management system, Image gallery scripts and many other tools. The company also introduced new ColorSEO services which save its customers thousands of dollars for website optimization and SEO ...
Read moreJimmy Fowler - Fort Worth Weekly
In pop culture, Catholic nuns have long carried the reputation of being cold, sometimes even sadistic classroom despots. (Friends of mine who attended Catholic schools have told me that, like many stereotypes, there is a hint of truth in this). But ...
Read moreTHE FEAST OF THE NINE VIRGINS - Indolink
The novel, too, is full of music, and when the right ghazal is composed, the movie begins to fall into place. But in the last thirty pages, stars and time planes collide, leading to a Bollywood ("Dream Machine") ending. We have been reading a script ...
Read moreSam Raimi Developing "The Shadow" Remake at Fox - WorstPreviews.com
Ever since the first "Wolverine" film, Hugh Jackman has been talking about telling the Japanese story in the sequel. THR is now reporting that Christopher McQuarrie (X-Men, Valkyrie) has finished the script. Based on a story by Frank Miller and Chris ...
Read moreISPH, GPX, MCGC, MOVE, GA, TYPE Expected To Be Lower After Earnings ... - TMCnet
It seeks to invest in the form of senior debt, including amortizing, bullet maturity, term loans, and revolving credit facilities ... dealer, market maker, investment banker, investment advisor, analyst or underwriter. Please consult a broker before ...
Read moreShep Smith Calls Out John Thune, R-SD, for Repeating Republican ... - Democratic Underground.com
In fact both sides spent the bulk of the three hours of the session trying to score tactical points rarely veering from their scripts and extending a hand to the other side. I don't know if the people see anything bipartisan about any of this.
Read moreSchool Opening Shows More Signs of Success - dvids
Following the raising of the flag, children performed various forms of entertainment, such as poems, songs and religious prayers, all met with great applause from the crowd. Yassin, the headmaster, stood in front of the crowd and spoke words of ...
Read moreProgrammed to please - Maryland Community Newspapers Online
Whether students are performing in their pajamas, local urban dancers are "popping" or a Ukrainian philharmonic orchestra is stopping by on its world tour, Montgomery College is all about Entertainment 101. This week the razzmatazz begins with MC's ...
Read moreBriefly: Feb. 27 - Abington Mariner
PLYMOUTH – Plymouth Community Theatre will present Almost, Maine , a debut comedy by John Cariani, Feb. 26-28 and March 5-7 at the Plymouth Center for the Arts, at 11 North St. Cariani, a native of Presque Isle, Maine, now living in New York City ...
Read moreWelcome to Php Forms Script Questions and Answers
Open Question: can anyone tell me why this email script will not work?
<?php $contact_name = $_POST['name']; $contact_email = $_POST['email']; $contact_subject = $_POST['subject']; $contact_message = $_POST['message']; if( $contact_name == true ) { $sender = $contact_email; $receiver = "xxxxxx@isc.com"; $client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form provided by http://www.flashmo.com"; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) ) { echo "success=yes"; } else { echo "success=no"; } } ?> Do I need to add something?Sorry but I am a newbie, where would I find the Servers mail settings (Yahoo hosting) and how would I incorporate them into this script? Thanks moreOpen Question: Jquery form validation?
I have a php script that generates a form (all radio buttons) based on some arbitrary data. The form ranges from 3-10 questions depending on which form you get. My question is how can i loop through each radio group, get the value of the selected radio button, and then check to see if any of those results do not have a value(validating) so i can then display an error if all questions have not been answered. moreOpen Question: PHP mail form help..................?
when the submit button is hit it returns an error 405 (access to page is not allowed) can anyone suggest what is wrong with it please? this is the script <?php $emailSubject = 'contact.htm'; $webMaster = ``; $email = $_POST['email']; $name = $_POST['name']; $comments = $_POST['comments']; $body = <<<EOD <br><hr><br> Name: $name <br> Email: $email <br> Comments: $comments <br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); $theResults = <<<EOD <html> <head> <title>sent message</title> <meta http-equiv="refresh" content="4;URL=http:///contact.html"> <style type="text/css"> <!-- body { background-color: ="lightblue"; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 25px; font-style: italic; moreOpen Question: How to insert HTML code into MySQL tables?
I'm trying to insert HTML code into my MySQL table to be displayed later. MySQL table is a TEXT type, collation is UTF8_unicode_ci I wrote a simple PHP script that allows me to enter the HTML code into a standard HTML form TEXTAREA box....the code is then passed with the POST technique to another script page, converted to a variable ($html), then inserted into the proper FIELD in the correct TABLE. If I enter standard text into the TEXTAREA form, it INSERTS the data correctly into the TABLE so I know the script is working properly. However, when I try it with HTML tags included, nothing ever gets INSERTED into my TABLE. I've read that we should be able to save HTML code inside MySQL tables but I can't seem to get it work. Anyone know what to do here? Note: I'm trying to do this with PHP coding. Thanks! moreOpen Question: html Mail form script to send info to outside of webhost email?
I need help with coding script for a suggestion box. The website is built off html. the page built I need and the form box no problem, its the script to get the info sent to my other email outside of the host. I was using php for the script with no success. I was told by a friend that I need to use html and php will not work in html. Help what do I do? moreVoting Question: javascript help need one thing modified and cannot figure it out?
Below is my code. What it does: It asks what color grass is.. if you answer green a pop up comes up and says correct answer. if you answer anything else it says incorrect answer (using javascript) then i created another function called submitform. This is where I am having trouble. What i am trying to do is when you click the submit button i want it to go to the function that decides if your answer is correct or incorrect then automatically go to the function that submits the form (which actually just goes to a page named handle-data.php.. Here is the code.. <form name="myform" action="handle-data.php"> <a href="javascript: submitform()"</a> </form> what color is the grass? <input type = "text" id = "answer"> <input type = "button" id = "time" onclick="answer()"> <script type = "text/javascript"> var n = 60; // modify this for number of seconds to answer document.getElementById( 'time').value = "Answer in " + n + " seconds"; var i = setInterval('count()' , 1000); var tooLate; function count() { tooLate = 0; n--; if(n >=0) { document.getElementById( 'time').value = "Answer in " + n + " seconds"; } else { clearInterval(i); alert("Too late!"); document.getElementById('answer').value = ""; tooLate = 1; } } function answer() { //when you hit submit it should run through this function first var correct = "green"; // This is the correct answer if (tooLate == 0) { if(document.getElementById( 'answer').value == correct) { clearInterval(i); alert("Right Answer with " + n + " seconds remaining"); } else{ clearInterval(i); alert("Incorrect! The answer was " + correct); } } function submitform() // after it runs through answer function it should run through this function { document.myform.submit(); } } </script> moreVoting Question: Help in website creation with PHP MYSQL and AJAX?
Creating customer view shopping website hai i hv tried in AJAX. i hv some error.. can you help me ? i hv attached two files "order1.html" & "answer.php" order1.html (1.99K) Number of downloads: 1 answer.php (1.01K) Number of downloads: 0 in "order.html" two radio buttons are there, if single radio button is clicked and corresponding value from database should be fetched and be displayed. in answer.php file corresponding values of capacity is fetched and displayed.. to my view i hv not found any wrong in code. but nothing is displayed.. if you found any error in my code.. please convey it to me and help me with regards sivasankari ORDER.HTML <html> <head> <script language="javascript" type="text/javascript"> function ajaxFunction(){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went wrong alert("Your browser broke!"); return false; } } } // Create a function that will receive data sent from the server ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ document.myForm.time.value = ajaxRequest.responseText; } } // if "single" radio button is clicked var sdoor = document.getElementById('single').value; // if "double" radio button is clicked var ddoor = document.getElementById('double').value; if(sdoor == "single") { // if value of radio button is single var queryString = "?door=" + sdoor; ajaxRequest.open("GET", "answer.php" + queryString, true); ajaxRequest.send(null); } if(ddoor == "double") { // if value of radio button is double var queryString = "?door=" + ddoor; ajaxRequest.open("GET", "answer.php" + queryString, true); ajaxRequest.send(null); } } </script> </head> <body> <!-- form having two radio buttons if a radio button "single" is clicked means capacity of each door's field "single" is fetched from database and echoed --> <form name='myForm'> <p>(i) Door option : <input type='radio' name='door' value='single' id="single" onclick='ajaxFunction()'>Single</input> <input type='radio' name='door' value='double' id="double" >Double</input> </p> </form> </body> </html> answer.php <?php $dbhost = "localhost"; $dbuser = "root"; $dbpass = "root"; $dbname = "test"; //Connect to MySQL Server mysql_connect($dbhost, $dbuser, $dbpass); //Select Database mysql_select_db($dbname) or die(mysql_error()); // Retrieve data from Query String $door = $_GET['door']; // Escape User Input to help prevent SQL Injection //$door = mysql_real_escape_string($door); //build query // Assume "fridge" is a table contains two fields door and capactiy // values of two table seen like below // door, capacity //single, 190 //double,210 //single, 200 // if single radio button is clicked, 190 and 200 should be displayed $query = "SELECT * FROM fridge"; //Execute query $result = mysql_query($query) or die(mysql_error()); // Insert a new row in the table for each person returned while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ if($row['door'] == $door) { $display_string .= "$row[capacity]"; } } echo "Query: " . $query . "<br />"; echo $display_string; ?> moreVoting Question: PHP Issue (Parse Error?)?
I am putting a form PHP script to email it to me. It says I have a parse error on line 11, unexpected {, expecting [ (I added the line numbers for you) 11 $emailField = $_POST ['email'] 12$firstnameField = $_POST['firstname']; 13$lastnameField = $_POST['lastname']; 14$streetField = $_POST['street'];I added a semi-colon. still no luck moreResolved Question: Can you help me with a simple javascript, PHP, and cookie login script? - I Have all the code, whats wrong?
Ok first I have a normal .HTML page that has the following form on it. <form method="post" action="login.php"> Username:<input type="text" name="user" id="user"> Password:<input type="password" name="pass" id="pass"> <input type="submit" value="Login"> <input type="reset" value="Clear"> </form> This form gets the person to enter their username and password and sends this data to LOGIN.PHP, this is just a separate page that has a predetermined password and username set up (It would be nice to add more than one, but for now just one will be fine) This is the PHP script...when the correct username and password are entered it does work and send them to the right page BUT IT DOES NOT set a cookie which is what I'll need for the next step. <?php if (isset($_POST["user"]) && isset($_POST["pass"]) && strtolower($_POST["user"]) == "admin" && $_POST["pass"] == "password") { setcookie( "userlogin" , "admin" , time()+60*60*24*0 , "/" , "www.mysitehere.com" ); header( "Location: http://www.mysitehere.com/pages/page1.html" ); } else { header( "Location: http://www.mysitehere.com/pages/login_fail.html" ); } ?> NOW CAN YOU help me fix the two parts I'm missing? 1) A proper cookie that will last for one day, delete itself on browser close, and be deleted if the person hits a logout button that I don't have (Can you show me how?) yet. 2) A Java Script that I can place in the HEAD of my protected pages that checks if that cookie exist. If it doesn't they can not be on that page and get redirected to a login page or whatever page I choose to send them too. THANKS FOR ALL THOSE WHO HELP!!! - This is simple I know it, just not something i know how to do yet. 5 stars to whoever can help fix my code and get it all working!I'm not protecting anything important and I do not want my pages to be PHP. This is why I need to check with javascript. EXAMPLE > login.html (sends data to loginscript.php) Pass and user correct so page1.html loads. When i click on a link and change to page2.html a Java Script in the head checks to see if the login cookie exists and allows you to stay if it does. IF it doesnt it redirects you to login.html moreVoting Question: I need help making a php script?
I'm trying to make a web form on my website where users can email their friends and upload files from their computer to send to them preferably on their cell phones is their any way I could make this happen Thank you in advance moreVoting Question: Website Hosting upgrade to use Microsoft Server 2008. Help request?
I have a website. I have just renewed the domain name and upgraded to a new hosting package. The new hosting package uses Microsoft Server 2008. is there any way i can use the PHP email form that I have used previously, or do i need to update to a ASP email script? If so, can anyone help as I have never used ASP before. i think from what i have read that it have similarities to Vbasics, but that is another programming language I wasn't able to grasp when had to learn at collegemy website is hosted with daily.co.uk there server uses Microsoft CDOSYS moreResolved Question: how can I make a text in html block some fonts?
I have a html form that lets the user upload a picture, and then a php file that will upload te image. The user can type what the image will be on the server. But i noticed that if it uses a font not allowed (such as "\") it will not upload the file.I want to know either a html or PHP script to block them fonts.I mean that my OS (windows 7) ,[i dont know about others],dont allow the "\" font when trying to save a file.So when users use my php file, and if they enter such a font, it will not save the file. I need to know a php script to tell the user it is not allowed, or html not allow it to be typed. moreResolved Question: php File Upload script?
Here is the code I am using: ________The form <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Select Filename:</label> <input type="file" name="file" id="file" /> <br /><input type="submit" name="submit" value="Upload File" /> </form> -----The upload_file.php <?php $target_path = "upload/"; $filename = $_FILES['file']['name']; $uploadFile = $target_path . $_FILES['file']['name']; move_uploaded_file($_FILES['file']['tmp_name'], $target_path); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['file']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!";} ?> _________________________________________________________________ Whenever I upload a file I get my error message "There was an error uploading the file, please try again!". I don't seem to see what's wrong with it so I thought anyone could help. Thanks moreResolved Question: does anyone have a php script that will just mail the contents of an html form?
i have an html form and i just want a simple script that will mail the contents of the form. i don't want to add a new form or anything like that, just a script to mail the contents.... moreResolved Question: How to make an html form to submit info to your e-mail?
I have a form with several fields, name, phone, etc. The submit part looks like this: <td><input type="submit" name="send" value="Submit"/></td> above the JavaScript part of the script, I have <form action="/compare/index.php" method="post"> Is there a way to have information sent to an email to test whether a form works, without having to use an actual web site to test it on? When I open the .html in browser I get "No file exists at the address "/compare/index.php" How do I have information to be sent to my e-mail? And if I WERE to use my web site and put the script onto a page, how would I do it then? Please help! moreResolved Question: Help with PHP form scripts?
Hey guys. I'm trying to setup a poll form for a website I'm creating. However, my activity between the html code for the form and the php script doesn't seem to correctly send the data. Also, when the 'Submit' button is pressed, my browser displays the PHP document and its code instead of actually running the code (or so I believe). I'm not very used to PHP and could really use some help: **This is the form in HTML code**: <table cellspacing="0" cellpadding="6" border="0" bordercolor="#0EF906" bgcolor="#0EF906" width="87%"> <tr> <td align="left"><center><b>How did you hear<br>about Life Awareness?</b></center> <form name="bsh6297" action="poll.php" method="POST"> <p><input name="LAR" class="Form" type="radio" value="Friend">Friend</input> <br><input name="LAR" class="Form" type="radio" value="Youth Group">Youth Group</input> <br><input name="LAR" class="Form" type="radio" value="Parents">Parents</input> <br><input name="LAR" class="Form" type="radio" value="Flyer">A Flyer/Bulletin</input> <br><input name="LAR" class="Form" type="radio" value="Church">During Mass</input> <br><input name="LAR" class="Form" type="radio" value="Other">Other: </input><input name="LAR" class="Form" type="text" size="8" maxlength="26"></input> <p><center><input name="Submit" class="Form" type="submit" value="Submit"></input></center></form> </td> </tr> </table> **and this is the PHP code in my 'poll.php' document**: <?php if ($_POST['Submit'] == "Submit") { $varLAR = $_POST['LAR']; $errorMessage = ""; } if ($errorMessage != "") { echo("<p>There was an error. Please resubmit your choice. \n"); } else { $fs = fopen("pollData.txt" , "a"); fwrite($fs, $varLAR . "\n"); fclose($fs); exit; } ?>Sorry. My browser is Safari 4.0.4. moreResolved Question: Email activation php script help?
Alright I found a script on the internet and I fixed to my liking. Well I really want to add a email activation part to the script so can anyone tell me what to add it would help so much. I am in the process of learning php and really need help here is my current code <?php mysql_connect("localhost", "root") or die(mysql_error()); mysql_select_db("users") or die(mysql_error()); if (isset($_POST['submit'])) { if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) { die('You did not complete all of the required fields'); } if (!get_magic_quotes_gpc()) { $_POST['username'] = addslashes($_POST['username']); } $usercheck = $_POST['username']; $check = mysql_query("SELECT username FROM users WHERE username = '$usercheck'") or die(mysql_error()); $check2 = mysql_num_rows($check); if ($check2 != 0) { die('Sorry, the username '.$_POST['username'].' is already taken.'); } if ($_POST['pass'] != $_POST['pass2']) { die('Your passwords did not match. '); } $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); $_POST['username'] = addslashes($_POST['username']); } $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?> <h1>Registered</h1> <p>Thanks for signing up with us please proceed to the login page, or click <a href=here.php>here</a> to login</a>.</p> <?php } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table border="0"> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="60"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="30"> </td></tr> <tr><td>Confirm Password:</td><td> <input type="password" name="pass2" maxlength="30"> </td></tr> <tr><th colspan=2><input type="submit" name="submit" value="Register"></th></tr> </table> </form> <?php } ?> moreResolved Question: Using PHP to port HTML?
I have a site where a you enter information on a php form and then it puts all the info together and generates and HTML page with that info. Recently I changed the way that it generates the HTML adding a <pre> tag to several parts of it. When I updated the stylesheet to change the formatting of the pre tags i realized that only the HTMl pages in 2010 reflected the changes because they were the only ones with the pre tags. Is there any way to build a PHP porting script where it will go through a file, take out the information and rebuild it into the new version? Thanks, CompuTeckyAny code samples would be appreciated.Ok i figured it out i am just stuck on matching ONLY the second instance of the pattern using regex. moreResolved Question: Why isn't this javascript working?
I'm trying to validate a form on my admin page to make sure there are no blanks in some of the fields. I have tried one method (which is commented out) and a 2nd which is not, neither of which seem to work. <!-- <script language="javascript"> function valid() { var name,paypal,condition,quantity,cost; name=document.submitproduct.name.Value; paypal=document.submitproduct.paypal.Value; condition=document.submitproduct.condition.Value; quantity=document.submitproduct.quantity.Value; cost=document.submitproduct.cost.Value; if(name=="") { alert("Field can't be blank"); submitproduct.name.Focus(); return false; } else if(paypal=="") { alert("Field can't be blank"); submitproduct.paypal.Focus(); return false; } else if(condition=="") { alert("Field can't be blank"); submitproduct.condition.Focus(); return false; } else if(quantity=="") { alert("Field can't be blank"); submitproduct.quantity.Focus(); return false; } else if(cost=="") { alert("Field can't be blank"); submitproduct.cost.Focus(); return false; ) ) </script> --> <script type="text/javascript" function checkFields(){ for(I = 0; I <= 14; I++){ if(document.Forms[1].Elements[I].Value == ""){ if(I == 3 || I == 4 || I == 5 || I == 6) { continue; } alert("You forgot to fill in some required fields!!"); return false; } } } </script> </head> <body> <form name="submitproduct" action="recieveupdate.php" method="POST"> PayPal Code: <input type="text" name="paypal"value="" size="2000" /><br /> Title: <input type="text" name="name" value="" size="20" /> <br /> Game: <input type="checkbox" name="game" value="X" size="20" /><br /> Instructions <input type="checkbox" name="instructions" value="X" size="20" /> <br /> Box <input type="checkbox" name="box" value="X" size="20" /> <br /> Cover Art <input type="checkbox" name="art" value="X" size="20" /><br /> System <select name="system"> <option value="Nintendo Entertainment System">Nintendo Entertainment System</option> <option value="Super Nintendo Entertainment System">Super Nintendo Entertainment System</option> <option value="Nintendo 64" >Nintendo 64</option> <option value="Nintendo Gamecube">Nintendo Gamecube</option> <option value="Nintendo Wii" >Nintendo Wii</option> <option value="Nintendo Gameboy" >Nintendo Gameboy</option> <option value="Atari" >Atari</option> <option value="Sega Genesis" >Sega Genesis</option> <option value="Microsoft Xbox" >Microsoft Xbox</option> <option value="Microsoft Xbox 360" >Microsoft Xbox 360</option> <option value="Playstation" >Playstation</option> <option value="Playstation 2" >Playstation 2</option> <option value="Playstation 3" >Playstation 3</option> <option value="Playstation Portable" >Playstation Portable</option> <option value="PC" >PC</option> <option value="DVD Movies" >DVD Movies</option> <option value="System" >System Only</option> </select><br /> Condition <input type="text" name="condition" value="" size="20" /><br /> Quantity <input type="text" name="quantity" value="" size="20" /><br /> Cost <input type="text" name="cost" value="" size="20" /><br /> <input type="submit" value="Submit" onclick="return checkFields()"/> </form> the "if(I == 3 || I == 4 || I == 5 || I == 6)" is meant to stop the warning from coming up on "box", "art", "instructions", and "system". Could someone give me a hand here?to the 1st poster- I don't understand what you mean moreResolved Question: W3C Validation: Im getting 4 errors and can't figure out why. Please help.?
I have gone through and validated my index page using the w3c validator tool (validator.w3c.org). I managed to clear all but 4 errors. The errors are as follows below: ERROR 1) Line 163, Column 6: end tag for "form" omitted, but OMITTAG NO was specified </div>✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Line 151: start tag was here r<form action="index2.php" method="post" name="frm" onsubmit="return validate_for ERROR 2) Line 166, Column 7: end tag for element "form" which is not open </form>✉ The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. If this error occurred in a script section of your document, you should probably read this FAQ entry. ERROR 3) Line 163, Column 6: XML Parsing Error: Opening and ending tag mismatch: form line 151 and div </div> ERROR 4) Line 166, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 144 and form </form> ////////////////////////////////////////////////////// And here is the related code: -------------------------------------------- <body bgcolor="#FFFFFF"> <div id="container"> <div id="title"></div> <div id="menu"> </div> <div id="banner"></div> <div id="content"> </div> <div id="form_border"> <div id="form"> <div id="form_left"> </div> <form action="file.php" method="post" name="frm" onSubmit="return validate_form();"> </div> <input type="submit" value="submit" alt="Proceed to the next step." /> </form> </div> <div id="footer"> </div> </div> </body> -------------------------- I cut out the unnecessary code.... I count 9 opening div's and 9 closing div's. I dont know what the problem is. moreVoting Question: How do I make a PHP confirmation email?
Hi, How do I make a PHP confirmation email so that when the user enters their details into a contact us page it will send them an email to the address they just entered a message telling them to go to a page on my website. The user will then click the link and I would like the page to get the information the user entered from the previous page and automatically send off the email. This information could be in the form of cookie on the user's machine. Please don't get me wrong, it is not part of a user registration. Here I will outline it simply so that it is easier to understand: Contact Us page: Name field Email field Drop downs Message Checkbox submit- user clicks this is sends off an email to the email field ---------------------------- Confirmation email: Thanks for contacting us...etc Go to this link ....... ------------------------ Linked page processes php script Result: Thanks the email has successfully been sent to the support team at my company OR We're sorry the message cannot be send, please try again later ------------------------------- Please note- I cannot use a MySQL database as my hosting company only allows me to use 1 database and I am already using a MS SQL database. Any suggestions, thanks. moreVoting Question: Do I need to know PHP to be able to create a contact form, for a website?
I know CSS, HTML, JavaScript. Is there a script I can get (if PHP is required) so that I can create professionally standard contact forms? thanks moreResolved Question: What does this javascript do? In regular person's language?
function update(value1) { doAjax("behind_scan.php" , "id="+value1); } function doAjax(url , str ) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } url=url+"?"+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { //document.getElementById("txtHint").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText) document.forms.myform.scanner.value = ""; document.forms.myform.scanner.focus(); } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return null; } </script> moreResolved Question: could you help me with a php form problem?
hi i have a form that needs to access the db. everything works as it should but it keeps saying edit_btn is underfined as a php error. but the script works... could you take a look a the script for me at tell me whats wrong with it? <?php $error_msg = ""; $success_msg = ""; $title = ""; $description = ""; $hyperlink = ""; $episode = ""; $episode = ""; $video = ""; $page = $_SERVER['PHP_SELF']; $sql = mysql_query("SELECT * FROM extra WHERE page='$page'"); while($row = mysql_fetch_array($sql)){ $title = $row["title"]; $description = $row["description"]; $hyperlink = $row["hyperlink"]; $episode = $row["episode"]; $video = $row["video"]; $image = $row["image"]; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if ($_POST['edit_btn'] == "edit"){ $description = $_POST['description']; $title = $_POST['title']; $hyperlink = $_POST['hyperlink']; $episode = $_POST['episode']; $video = $_POST['video']; $image = $_POST['image']; // Error handling for missing data if ((!$description) || (!$title) || (!$hyperlink) || (!$episode) || (!$video) || (!$image)) { $error_msg = '<font color="#FF0000">ERROR: Please do not make the field(s) blank in that section</font>'; } else { $sqlUpdate = mysql_query("UPDATE extra SET description='$description', title='$title', episode='$episode', video='$video', image='$image', hyperlink='$hyperlink' WHERE page='$page'"); if ($sqlUpdate){ $success_msg = '<font color="#009900">Your location data has been updated.</font>'; } else { $error_msg = '<font color="#FF0000">ERROR: Problems connecting to server, please try again.</font>'; } } } ?> <form action="S01E01.php" enctype="multipart/form-data" method="post" name="form1" id="11" value="11"> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="18" colspan="7" align="center"><?php print"$error_msg"?><?php print"$success_msg"?></td> </tr> <tr> <td width="183" height="30" align="center"><input name="video" type="text" id="video" value="<?php print "$video"; ?>" size="30" maxlength="250" /></td> <td width="132" align="center"><input name="title" type="text" id="title" value="<?php print "$title"; ?>" size="22" maxlength="250" /></td> <td width="60" align="center"><input name="episode" type="text" id ="episode" value="<?php print "$episode"; ?>" size="10" maxlength="250" /></td> <td width="72" align="center"><input name="image" type="text" id="image" value="<?php print "$image"; ?>" size="12" maxlength="250" /></td> <td width="72" align="center"><input name="hyperlink" type="text" id="hyperlink" value="<?php print "$hyperlink"; ?>" size="12" maxlength="250" /></td> <td width="257" align="center"><textarea name="description" id="description" cols="40" rows="3"><?php print "$description"; ?></textarea></td> <td width="124" align="center"><input name="edit_btn" type="hidden" value="edit" /> <input type="submit" name="button" id="button" value="Submit" /> </td> </tr> </table> </form> moreResolved Question: HTML Slide-show code. How do I make operational?
Code below- I added in. Only first image came up. What did I do wrong with code? Got from here: http://www.htmlgoodies.com/beyond/javascript/article.php/3471341#effect What part did I forget or mess up on? ------------------------------------------------------------------ <SCRIPT LANGUAGE="JavaScript"> var num=1 img1 = new Image () img1.src = "a.jpg" img2 = new Image () img2.src = "b.jpg" img3 = new Image () img3.src = "c.jpg" img4 = new Image () img4.src = "d.jpg" img5 = new Image () img5.src = "e.jpg" text1 = "Step 1" text2 = "Step 2" text3 = "Step 3" text4 = "Step 4" text5 = "Step 5" function slideshowUp() { num=num+1 if (num==5) {num=1} document.mypic.src=eval("img"+num+".src") document.joe.burns.value=eval("text"+num) } function slideshowBack() { num=num-1 if (num==0) {num=4} document.mypic.src=eval("img"+num+".src") document.joe.burns.value=eval("text"+num) } </SCRIPT> <!-- The Image and Form Codes are Below --> <CENTER> <IMG SRC="a.jpg" NAME="Step 1" BORDER=0 HEIGHT="100" WIDTH="100"> <p> <FORM NAME="Fall Centerpiece"> <INPUT TYPE="text" WIDTH="100" NAME="Code." VALUE="Step 1"> </FORM> <A HREF="JavaScript:slideshowBack()"> Back</A> <A HREF="JavaScript:slideshowUp()"> Next</A> moreResolved Question: PHP MySQL - Need help with SELECT Command !!!?
I have a one page survey form at my website contains 24 questions. I created it using PHP / MySQL connectivity, form processing is working fine now. But I need to know, how do I create a Search form (on php) using check-boxes &/or Drop-down menu, to search the Survey table (inside MySQL database) for specific fields or columns. For example, I want to view total number of answers for question2 & question7 & question9, and I'll have to check the check-boxes or select multiple options in drop-down list for my desired results to display AFTER I click the submit button. And the next page (after collecting required columns or data) should display only what I selected to view not the entire table. Well I'm new to php/mysql stuff, so my question might not make sense but I still need a detailed guidance or you can just write the script here then I'll play with it ........ If you want to know more info, please ask. Any help will be greatly appreciated :-) moreResolved Question: Simple XmlHttpObject problem?
This is just a portion of the code I have, let me know if you need more to fully diagnose the problem. The problem is strange to me because this code was all working fine a couple days ago. I've made some minor changes to server configuration but don't believe i've touched any of this code. When using the code below the alert returns a value of null. In the past this has never happened, it has always returned the xml file I'm requesting. I have noticed a strange difference between browsers. This script is used to fill a form automatically. In its current state it works perfectly in opera, but does not work in firefox, IE, safari, or chrome (used to work in all the browsers). I'm by no means a javascript expert, am I missing something here? Code: xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="js/entry-info-xml.php"; url=url+"?q="+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); function stateChanged() { if (xmlhttp.readyState==4) { xmlDoc=xmlhttp.responseXML; alert(xmlDoc); } } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return null; } moreResolved Question: how to create a email contact form?
how to create a script that sends an email when a from the contact page is submitted . .?? The part of the contact page i.e the contact form goes like this . . <td width="65%" valign="top" class="body"><form id="form3" name="form3" method="post" action="contact.php"> <table width="93%" border="0" align="center" cellpadding="2" cellspacing="4"> <tr> <td height="35" colspan="3" valign="top" class="heading" style="padding-top:8px; color:#0066FF;"><span class="style2"><strong>Contact Us :</strong></span></td> </tr> <tr> <td width="36%" class="body">Your Name:</td> <td width="64%" colspan="2"><input type="text" name="textfield3" style="width:250px; height:13px;" /></td> </tr> <tr> <td class="body">City:</td> <td colspan="2"><input type="text" name="textfield33" style="width:250px; height:13px;" /></td> </tr> <tr> <td class="body">Phone no:</td> <td colspan="2"><input type="text" name="textfield35" style="width:250px; height:13px;" /></td> </tr> <tr> <td class="body">Email Address:</td> <td colspan="2"><input type="text" name="textfield36" style="width:250px; height:13px;" /></td> </tr> <tr> <td class="body">Comments:</td> <td colspan="2"><textarea name="textarea" rows="5" cols="" style="width:250px;"></textarea></td> </tr> <tr> <td> </td> <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="28%"><input type="image" name="imageField22" src="images/submit.gif" /></td> <td width="72%"><input type="image" name="imageField3" src="images/reset.gif" /></td> </tr> </table></td> Someone help me out with script to host on the server so that i can get messages to my email address . . Thanks in advance moreResolved Question: Javascript Variable value to Php Variable ?
var eid = form.eid.value; <?php $eid = "<script language='javascript'>document.write(eid);</script>"; I've tried this, it doesn't work. moreResolved Question: Where can i get someone to help me setup one page website (contact me page) using php, (i am ready to pay)?
hi all recently i built and uploaded a full website , the only thing that i still can' get it work properly is a simple php "contact me" form . all what this page should do , is take informations from the visitors and send this information to my email when visitors click the submit button , thats all . i tried to copy some ready php mailto scripts none of them worked for me , so for now i am searching someone to pay him few bucks and make it work for me thanks moreResolved Question: where can i get someone to help me setup one page website (contact me page) using php, (i am ready to pay)?
hi all recently i built and uploaded a full website , the only thing that i still can' get it work properly is a simple php "contact me" form . all what this page should do , is take informations from the visitors and send this information to my email when visitors click the submit button , thats all . i tried to copy some ready php mailto scripts none of them worked for me , so for now i am searching someone to pay him few bucks and make it work for me thanksplease check your email (contact@am22tech.com) moreResolved Question: PHP mailto function not working for me !! godaddy windows hosting account !?
hi all I created a form that my visitors can fill out and a simple php script is supposed to email the information to me. When my visitors press the submit button the webpage shows up that i made to thank the people for subscribing, and everything worked fine, however I never get anything in my Email! My site is hosted by GoDaddy windows server, the godaddy support team say they don't do customer support for scripting issues. the thing is that same files (html and php) worked just fine on other hosting servers . been few days with this trouble, i am really getting tired . searched google forums alot ,, nothing really helped . any tip for the solution would be perfect . thanks moreResolved Question: php form. php script to save as txt but do not display it?
Ok i got 3 files 1. index.php-where the form is 2.next.php- 3.entry.txt how do i get next to save the form data but do not see it like go to another website What is the script i should use for next.php moreVoting Question: Hi, i have made a php file, i am getting this error?
Parse error: syntax error, unexpected T_VARIABLE in C:\XAMPP\xampp\htdocs\form\Contactformprocess.php on line 6 It is basically a php to tell it to send the form details to my email, here is the code: <?php /* Subject and Email Variables */ $emailSubject = 'Crazy PHP Scripting'; $swebMaster = 'eddyj05@hotmail.co.uk'; /* Gathering Data variables*/ /*$emailField = $_POST['email']; $nameField = $_POST['name']; $phoneField = $_POST['phone']; $budgetField = $_POST['budget']; $travellersField = $_POST['travelers']; $commentsField = $_POST['comments']; $newsletterField = $_POST['newsletter'];*/ $body = <<<EOD; echo "<br><hr><br>"; echo "Email: $email <br>"; echo "Name: $name <br>"; echo "Phone Number: $phone <br>"; echo "Budget: $budget <br>"; echo "Number of Travelers: $travelers <br>"; echo "Comments: $comments <br>"; echo "Newsletter: $newsletter <br>"; EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as HTML */ $theResults = <<<EOD echo "<html>"; echo "<head>"; echo "<title>JakesWorks - travel made easy-Homepage</title>"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"; echo "<style type=\"text/css\">"; <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; //TRY NOW!!!!!!!!!!!!!!!!! and msg me on steam font-weight: normal; color: #666666; text-decoration: none; } --> echo "</style>"; echo "</head>"; echo "<div>"; echo " <div align=\"left\">Thank you for your interest! Your email will be answered very soon!</div>"; echo "</div>"; echo "</body>"; echo "</html>"; EOD; echo "$theResults"; ?>oh yer that shudnt be there anyway, ignore that */ bit that was just to test to see if i had fixed itThanks for that nephets, it doesnt work im afraid, thanks for it and im not being rude but it says line 6... which is this $swebMaster = 'eddyj05@hotmail.co.uk';@@@@@ATTENTION@@@@@ I have been playing around and i now only get this as my error, which displays the correct messsage below. Heres what it displays: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\XAMPP\xampp\htdocs\form\Contactformprocess.php on line 32 Thank you for your interest! Your email will be answered very soon! moreResolved Question: Can anyone come up with a PHP script?
I'm building my website and I want to use mysql and PHP in my page. I want to create users database for my needs. I've created database in my server and I want to know the code to be used in html to send the results to database(in php). The fields in the form are FullName, Username, Password and E-mail. Help please! moreVoting Question: Can someone check out my HTML and Javascript code and tell me why it doesnt function like I want it to?
The code is located her, but is included in the question as well. http://damastah.pastebin.com/m23e82cbb You can download it I want to create a textbox with a button next to it. Then I want an horizontal rule and after that, I want a little browsing window that will go to the site that's entered in the box whatever it may be. The code seemingly either deletes the textbox after the button is clicked, or it just browses to the site. I wanted it to output the site onto the page and then browse to it while leaving the text and the textbox on top. <html> <head> <title>BrowseNSync</title> </head> <body spellcheck="false"> <center><H1>Start Browsing below</H1></center> <form name = "form" value = "" action = ""> <b>http://</b><input type = "text" name = "site" value = ""> <input type = "button" name = "button" value = "Browse" onclick = "browse('http://' + form.site.value)"> <hr /><br /><br /><br /> <!--<center><object data = "http://www.guimp.com" width="600" height="400" name = "browsingWindow" border = "3"> <embed src="http://www.guimp.com" width="600" height="400"> </embed> Error: Embedded data could not be displayed. </object></center>--> </form> <script type = "text/javascript"> var url = "http://" + form.site.value //var browsingWindow = window.open(URL) //browsingWindow.onload = printBL(); function printBL(){ var loc = browsingWindow.location document.write("You are on the site: " + browsingWindow.location) } function browse(url){ document.write("<br />") document.write(url) browsingWindow.data = url; document.write('<object data = "' + url + '" width="600" height="400"> <embed src="' + url + '" width="600" height="400" name = "browsingWindow"> </embed> Error: Embedded data could not be displayed. </object>'); printBL(); document.write(site[0] + site[1]) } </script> <?php file_put_contents("temp", url); ?> </body> </html>Frames will work just fine! Thanks. It took me a while to figure out that you couldnt use the <body> tag with the <frameset> tag. Thanks, Samwise moreVoting Question: What is wrong with this PHP code?
<html> <body> <?php # Script 10.3 upload.php if (isset($_POST['submitted'])) { if (isset($_FILES['upload'])) { $allowed = array ('audio/wvm', 'audio/mp3'); if (in_array($_FILES['upload'] ['type'], $allowed)) { if (move_uploaded_file ($_FILES['upload']['tmp_name'], "./uploads/{$_FILES['upload']['name'] }")) { echo '<p><em>We will e-mail you. Thanks for your interest.</p></em>'; } } //End of isset($_FILES['upload']) IF. ?> <form enctype="multipart/form-data" action="upload.php" meathod="post"> <input type="hidden" name="MAX_FILE_SIZE" value="524288"> <fieldset><legend>Select an .mp3 or .wvm file of 512KB or smaller to be uploaded:</legend> <p><b>File:</b> <input type="file" name="upload" /></p> </fieldset> <div align="center"><input type="submit" name="submit" value"Submit" /></div> <input type="hidden" name="submitted" value="TRUE" /> </form> </body> </html> When I open the file it says, "Parse error: syntax error, unexpected $end in /usr/local/4admin/apache/vhosts/start-a-fire.com/httpdocs/sonsofaprodigy/upload.php on line 35" moreResolved Question: General PHP question. Zip Codes.?
My business has a website we are developing where people can visit and receive free estimates for different types of projects. Currently its setup to where all of the united states can visit the website fill out and submit the form. The problem is that we are only servicing the greater houston (tx) area. What is a logical way to send people to Page X if they enter a zip code we service, -OR- send people to Page Y if they enter a zip code we DO NOT service. Would I have to manually enter every zip code we service in the php script?(would be a gigantic script) Or is there an easier way? Is there some external script that makes this task easy? etc. To be clear, im not asking about a way moreResolved Question: Need help with flash contact form inserting info into a database!!!!!!!!!?
<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Tahoma" SIZE="13" COLOR="#777777" LETTERSPACING="0" KERNING="0">this is a test message.</FONT></P></TEXTFORMAT> That is what shows up in my database under "message" when i do a form thing. it does the same stinking thing with my other fields within my table. I have NO clue as to why its doing this. i am using php, and this same exact script works with an html form, but when i deploy it to flash, making changes only to the variable names, it does this....why? i connect to the database fine. this is mental!!!!!!! blah!!!! heres the script. im using. <?php require("im not telling you!.php:)"); ?> <?php $db = mysql_connect($dbhost,$dbuser,$dbpass); mysql_select_db("$dbname",$db); $sql="INSERT INTO contact_form (name1, company, email, number, message1) VALUES ('$_POST[name1]','$_POST[company]', '$_POST[email]','$_POST[number]', '$_POST[message1]')"; if (!mysql_query($sql, $db)) { die('Error: ' . mysql_error()); } mysql_close($db) ?> moreVoting Question: PHP problem plz help?
<head> <style type="text/css"> .conten{ overflow:hidden;background:silver;margin:110px 233px; height:200px;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;width:250px;border:solid 1px silver;} .conten-comment{font-family:Arial, Helvetica, sans-serif;color:red;font-size:15px;border-bottom: 1px dashed green;padding:0px 5px;} .form{margin:-118px 233px;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;width:250px;border:solid 1px silver; gray;background:silver;} </style> </head> <body> <div class="conten"> <div class="conten-comment"> <?php $con=mysql_connect("localhost" , "root" , ""); if(!$con) echo die(); mysql_select_db("rafi"); $sgl="INSERT INTO comment(Message) value('" .mysql_real_escape_string(stripslashes($_REQUEST['Message']))."')"; if($register=mysql_query($sgl)) $blah=mysql_query("SELECT Message FROM comment ORDER BY 'comment' desc "); while($row=mysql_fetch_assoc($blah)) echo $row['Message'],"<br />"; ?> </div> </div> <div class="form"> <form method="post" action="comments.php"> <input type='text' name="Message" /> <input type="submit" Value="Submit" /> </form> </div> </div> </body> </html> this is my script, the problem is that my comments is not showing number wise, Like when ever i write some thing first it show coments from the top then after entering 5 comments it shows from the bottom Help me out plz moreResolved Question: PHP temperature converter?
So its been 3 years since I last wrote a php script and I need a little help getting off the ground with my php assignment for class. I was sadly forced into this class since my others were canceled and I need the credits to graduate. I know this is a very easy script assignment I just cant seem to figure out what I am missing. Write a PHP script that will accept an input temperature value from a querystring. If the input value is in fahrenheit, convert it to celsius. If the input is in celsius, convert it to fahrenheit. The resulting web page should look something like the following: The temperature is 55 degrees fahrenheit and 13 degrees celsius. Note that both values should print rounded to the nearest integers. Look up the round() function to accomplish this. You should allow input in any of the following ways. ANY number is valid for the value: /temperature.php?fahrenheit=55 /temperature.php?f=4 /temperature.php?celsius=86 /temperature.php?c=17 Your script works properly with querystrings in the form "?f=", "?fahrenheit=", "?c=", and "?celsius=". moreResolved Question: Email Validation PHP?
Hey, I'm working on a roommate database at the university I attend. In the form registration I would like to only accept the schools domain. (mail.example.edu) If anyone could help in the code for the php script it would be greatly appreciated. Thanks moreResolved Question: HTML PHP question about uploading?
Scenario: users uses a Wysiwyg editor for the input data. the image attached in the context but the Src (referencing) on the local computer ... need to parse input(bare HTML) fetch the local referencing upload it to server then change the src then to the Database.... i already did parsing thing .... but need script to upload image to server with php script no forms (enctype="multipart/form-data") Thanks in Advance moreVoting Question: parse error php login, please help?
i have this script: <?php session_start (); include ("sql.php"); switch (@$_POST['Do']) { case "login": $cxn = mysqli_connect($host, $user, $passwd, $dbname) or die ("couldnt connect to server"); $sql = "SELECT loginName FROM member WHERE loginName='$_POST[fusername]'"; $result = mysqli_query ($cxn,$sql) or die ("could not execute query"); $num = mysqli_num_rows ($result); if ($num > 0) //Login name was found { $sql = "SELECT loginName From member WHERE loginName = '$_POST[fusername]' AND password = md5('$_POST[fpassword]')"; $result2 = mysqli_query ($cxn,$sql) or die ("could not execute query2"); $num2 = mysqli_num_rows ($result2); if ($num2 > 0) // Password is correct { $_SESSION['auth']="yes"; $logname = $_POST['fusername']; $_SESSION['logname'] = $logname; $today = date("F j, Y, g:i a"); $sql = "INSERT INTO login (loginName, loginTime) VALUES ('$logName', '$today')"; $result = mysqli_query($cxn,$sql) or die ("cant insert query into database"); header ("Location: member_page.php"); } else // password is not correct { $message ="The login name, '$_POST[fusername]' exists, but you have not entered the correct password! please try again"; include("login_form.php"); } } elseif ($num == 0) { $message ="Login name does not exist"; include("login_form.php"); } } break; case "new": foreach ($_POST as $field => $value) { if ($field != "fax") { if ($value == "") { $blanks[] = $field; } } } if (isset ($blanks)) { $message_new = "the following fields are blank. please enter the required information: "; foreach ($blanks as $value) { $message_new .= "$value, "; } extract ($_POST); include("login_form.php"); exit(); } /* check if username alreay exists */ $sql = "SELECT loginName FROM Member WHERE loginName = '$loginName'"; $result = mysqli_query ($cxn, $sql) or die ("couldnt execute select query"); $num = mysqli_num_rows ($result); if ($num > 0) { $message_new = "$loginName alreay used. Select another username"; include ("login_form.inc"); exit (); } ?> I GET PARSE ERROR ON LINE47 AFTER THE BREAK, WHAT HAVE I DONE WRONG? moreVoting Question: Why is this form field not showing up in results email? (php/java question)?
I have a form with a hidden field that becomes visible when user clicks a specific checkbox. The problem is that the user input from this hidden form field is never included in the form results email. I am using Javascript to perform the show/hide tasks...... relevant code below <script language="JavaScript"> function showhidefield() { if (document.frm.systemtype_f.checked) { document.getElementById("hideablearea").style.visibility = "visible"; } else { document.getElementById("hideablearea").style.visibility = "hidden"; } } </script> </head> <form action="action_post.php" method="POST" name="frm" target="_self"> <input type="checkbox" checked="checked" name="systemtype_a" value="ac">A/C System <input type="checkbox" name="systemtype_h" value="heatpump">Heat Pump <input type="checkbox" name="systemtype_f" onclick="showhidefield()" value="furnace">Furnace <div id='hideablearea' style='visibility:hidden;'>Furnace type: <select name="fur_type"> <option value="electric">Electric</option><option value="naturalgas">Natural Gas</option><option value"propane">Propane Gas</option></select></div> <br /><b>Preferred project completion date:</b> <select name="completion_date"><option value="flexible">Flexible</option><option value="1_week">Within 1 week</option><option value="2_week">Within 1-2 weeks</option><option value="3_week">More than 2 weeks</option></select><br /><br /><br /><br /><br /> <b>My Zip Code: </b> <input type="text" style="font-size:14px" size="5" name="zip" maxlength="5" /> </div> <center><input type="submit" value="Give me my 3 estimates!" /></center> </form> All other user entered variables show up correctly on the results email. I am only having problems with the $fur_type select box. Please help. moreResolved Question: PHP error please help?
I am coding a PM system for my client script however when I make the code to insert a message into the database using a form I get the following error: Parse error: syntax error, unexpected T_STRING in /home/uberweb/public_html/clients/messages.php on line 164 Here are the offending lines of code: 160: <?php 161: $recipientc = $_POST['recipient']; 162: $subjectc = $_POST['subject']; 163: $messagec = $_POST['message']; 164: INSERT INTO messages (recipient,subject,message,read,sender) VALUES ('$recipientc','$subjectc','$messagec', 'No', '$session->username'); 165: ?> Could you please tell me how to fix this error :)I always start the SQL connection at the top of my document.Macadamean using your insert code fixed it :) You will get best answer as soon as I can select the option :) moreResolved Question: Can't figure out why my php script for ValidateCreditCard.php, can some help?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd" <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Validate Credit Card</title> </head> <body> <h1>Validate Credit Card</h1><hr /> <form action="ValidateCreditCard.php" method="get" enctype="application/x-www-form-urlencoded"> <p><input type="text" name="ccnumber" size="20" value= "<?php if (!empty($_GET['ccnumber'] ?>" /></p> <p><input type="submit" value="Validate Credit Card" /> </form><hr /> if (!isset($_GET['ccnumber'])) echo "<p>Enter your credit card number.</p>"; else { $Payment= $_GET['ccnumber']; $ValidPayment= str_replace("-", "", $Payment); $ValidPayment= str_replace(" ", "", $ValidPayment); if (!is_numeric($ValidPayment)) echo "<p>Please enter a valid credit card number!</p>"; else echo "<p>Your credit card is valid and the number is $ValidPayment.</p>"; } ?> </body> moreResolved Question: PHP/Java script: how to keep selected value after posting?
I need a little help, so any input would be awesome. Details: in my registration file there's a drop down list that contains a lot of countries, too many to keep track off... when I click on a submit button I want to be able to keep to value selected in the drop down. I haven't throughly tested the code below but the problem lies in javascript, Apperently I need to refresh the page before the SelectedIndex is set properly but I need it to work as soon as the submit button is clicked. code (trimed): <? if(isset[$_POST['validate'])){ $s_country=$_POST['country']; } <form> <select id="country" name="country"> <option value="country1">country1</option> <option value="country2">country2</option> <option value="country........ etc > </select> <input type="submit" value="validate" name="validate" /> <script> var sel_country= document.getElementById("country"); //cannot fit in one line if(sel_country.options[sel_country. selectedIndex].value!="<?php echo $country; ?>") { for (var x=0; x<sel_country.options.length; x++){ sel_country.options[x].value="<?php echo $country; ?>"; } } </script> </form> alternatively I know It's easier to just do this: <select name="country"> <option value="country1" <?php echo ($_POST['country']=="1"? "selected='selected'" : ''); ?> >country1</option> but there are about a hundered countries in my dropdown list so I can't go through each one. thanks to anyone who is willing to help. moreVoting Question: How to create a registering form on my site?
I'm a begginer. I want to know what to do and what scripts to use to make my site possible for visitors to register as members. My server allows every script except CGI, PL, ASP, PHP, PHTML. It allows VBScript, HTML script, Javascript and script languages like this. moreResolved Question: How can I make this subscription form work?
<form action=" http://www.tomtotom1.mysite.com/wordpress/index.php"enctype="application/x-www-form-urlencoded" method="post"> <table class="tableFireForm" border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th class="fireForm_title" colspan="3"><span style="color: #ff0000;">Thomas Services Intl. LLC</span></th> </tr> </thead> <tbody class="tableFireFormBody"> <tr id="fireFormRow370" class="fireFormRow"> <th class="fireFormQuestion" valign="top"><label><span style="color: #ff00ff;">first name</span></label></th> <td class="fireFormQBody" valign="top"><input id="fireFormField370" class="fireFormInput" name="name" type="text" /></td> <td class="fireFormInstruction" valign="top"><span style="color: #ff00ff;"></span></td> </tr> <tr id="fireFormRow375" class="fireFormRow"> <th class="fireFormQuestion" valign="top"><label><span style="color: #ff00ff;">primary Email</span></label></th> <td class="fireFormQBody" valign="top"><input id="fireFormField375" class="fireFormInput" name="email" type="text" /></td> <td class="fireFormInstruction" valign="top"><span style="color: #ff00ff;"></span></td> </tr> <tr id="fireFormRow376" class="fireFormRow"> <th class="fireFormQuestion" valign="top"><label><span style="color: #ff00ff;">leave comments</span></label></th> <td class="fireFormQBody" valign="top"><textarea id="fireFormField376" class="fireFormTextarea" rows="0" name="Field1"></textarea></td> <td class="fireFormInstruction" valign="top"><span style="color: #ff00ff;"></span></td> </tr> <tr id="fireFormRow378" class="fireFormRow"> <th class="fireFormQuestion" valign="top"><label><span style="color: #ff00ff;">phone-option</span></label></th> <td class="fireFormQBody" valign="top"><input id="fireFormField378" class="fireFormInput" name="Field2" type="text" /></td> <td class="fireFormInstruction" valign="top"></td> </tr> </tbody> <tfoot> <tr> <th> </th><script type="text/javascript">sjcap();</script> <td colspan="2"><input type="submit" value="submit here" /></td> </tr> </tfoot> </table> <input name="act" type="hidden" value="s_add" /> <input name="listid" type="hidden" value="fireFormField376" /> </form> moreTop Php Forms Script Links
PHP Form Processors | Scripts & Programs | Hot ScriptsPHP Form Processors. Scripts & Programs from Hot Scripts. |
Secure PHP Form Mailer Script · Dagon DesignThis is the PHP version of my secure form mailer script. This script has a wide range of features including: an easy to use dynamic form generation system (any number of fields, in ... |
PHP Form - PHP Form Tutorial - PHP Form ScriptCollect data from HTML forms to process with a PHP script as shown in our tutorial |
PHP Form.net :: Free PHP Forms :: Free PHP ScriptsFree php: Contact Us : Tell a Friend : ShoutBox : php Generators : E-Cards : Link Index : Captcha : HTML Button Generator |