Welcome to Php Forms Script News
Taiwan craftsman seeks to save printing heritage - Times Union
In an age when Chinese can text and tweet in their native script, and at a time when China has just surpassed ... many characters have been replaced by simplified forms to promote literacy, but purists say they lack ...
Read moreIt's Not an ITunes Scam It's Users' Passwords Being Stolen - Associated Content
Dynamic websites need user generated input - and this comes from forms. This tutorial will show you the basics of how to use a php script to handle forms, process some input, a... ITunes Pushes Apple Computer in ...
Read moreHP Scanners exposing sensitive information - Thetech Herald
ballot forms, and more. Adding to that, The Tech Herald discovered fax logs, and contact information on several systems. Zscaler has released a Perl script to check your network for problematic devices. You can get a ...
Read moreFollowing his dream led to 'Camp Rock 2' - Orange County Register
The Teenage Witch," bought his script for "Up, Up and Away," which ... Winning comes in many different forms," Berendsen says, speaking carefully so as not to spoil the outcome of the competition. "And it's not ...
Read moreOn This Day in History: August 30 - Brooklyn Daily Eagle
He believed that both forms of speech were learned in grammar school ... working for small stock companies in every imaginable capacity from director to script typist to “the guy who paints the scenery.”
Read moreJudyth Piazza chats with Hollywood Legend Joan Benedict Steiger - Student Operated Press
They all died from different forms of cancer, so my memories are sometimes bittersweet ... Whenever a script would arrive at the house, he`d ask me to read it for my feedback, then he`d say "Did you pick out your ...
Read moreMinority Report Technology with John Underkoffler - Deadbolt
Because even at the script level, seeing and visual communication ... So Doug was inventing all of these bizarre technologies and new forms of catastrophes that arose because of unexpected consequences, because of ...
Read moreTeaching like I Give a Damn - student evaluations - Archinect
Since the University of Minnesota requires soliciting feedback with student evaluation forms every semester, I accept that most of the commenters ... Reading a script is the most boring thing you could do (many ...
Read moreRead more
Welcome to Php Forms Script Questions and Answers
Resolved Question: BPO or Back Office Projects Need.?
With Our 5year IT and BPO Experience Now We want to provide Our best service for overseas companies. while We are looking for best companies to Apply We got your contact pleas spend just 1 minutes to touch what service in bellow We provide Our best level Data Entry Ø Spread sheet data entry / forms filling ( online/ offline) ( Computer Data Entry in any form including /Text, Numeric or Alphanumeric entry / Data Entry for Research Houses Online Data Entry /Examination Results entry / Mailing Lists /Yellow pages & white pages listings / Insurance Claim Entry / Payroll services /Booking keeping and Accounts activities. ) Internet Information and Data Research Ø Company contact information research ( Providing Company details , locations ,Tel numbers , Addresses ) Ø Clients profiles and directory research Ø Product categories information research (Providing productions details ) Ø Article contents research Ø Education and Information research ( Providing Education Information ) Ø Violence fake research (Attention for Internet fakes ) Ø Image research ( Research contents of Images ) Image Possessing Ø Marathon riders Bib Number entries ( sort out the Bib numbers of marathon riders ) Ø Advertisement , Banners , Scan images data conversion ( convert data to the Excel / Word / PDF formats etc ) Ø Image Capturing Ø Image Editing Document Possessing Ø PDF to Text Doc conversion Ø JPEG / TIFF / GIF all image categories into text document conversion Ø OCR any kind scanned document into text doc format Ø Old book image into text doc conversion ( Convert old book data to the text formats ) Ø Internet web site contents information into PDF , Word document conversion HTML , CSS script tagging Ø Convert image text with HTML tag for website Ø Convert images text with CSS tags for website Ø Convert image text with JAVA SCRIPT / PHP CRIPT / PB CRIPT tag for website Ø Book pages connect into web pages with adding HTML tags Search Engine web site optimizing Ø Meta tag inserting Ø Add customize SEO techniques to website Ø Google , Yahoo , Alta vista ,AOL keywords to bring websites into top 10 search results. Ø Word Press blog , Facebook keywords adding. Ø Answers for top question and bring to top 10 search points. Ø Generate Back links. Office Document Computerize Ø Computerize old bills , receipt , invoices , books , back statement , log books etc. Simple Website Designing Ø HTML one page / five page websites Writing and Proof Reading Ø Website contents writing and proof reading Ø News letter writing and proof reading Ø E-articles( Internet Article ) writing and proof reading Ø Book contents proof reading Ø Article writing ( product , items , marketing articles) Ø Magazine contents writing Ø News Paper proof reading Ø Creative writing and Creative designing Thank you very much keep touch with what We can do. We are awaiting for your pleasant reply with you service requirements. Have a successful day. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks, Rachitha H.A.R.S.C. www.dilrait.com Leader in DILRAiT Team rachi@dilrait.com 0094777412613 Gonawala, Kelaniya Sri Lanka (Island of Gods) ........................................................................ "Assess Comes With Efficiency" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ moreResolved Question: PHP - Terms and conditions tick box?
I have a form set up on a security portal I made several years ago and it has work very well until now but due to a mistake and a serious report being sent went only half completed and a lot of confusion I would like to add a simple tick box to disable the submit button until it is ticked.... someting like a "terms and Conditions" tick box... Now I want to add this to an existing form script and it is this that is giving me problems.... My PHP skils are limited and I have modified freely available scripts that do what I need, I have searched for a script for this but when I put them into my form it doesnt work or breaks. So, What do I need to add to this simple form to add a functioning tick box that will not allow the form to be submitted unless ticked????? <FORM action="formmailer.php" method="post" name="ContactForm" id="ContactForm"> <input type="hidden" name="Report Type" Value="Serious Incident Report"> <input type="hidden" name="Site Name" Value="Carlsberg"> <input type="hidden" name="Site Location" Value="Northampton"> <input type="hidden" name="Site Number" Value="27461"> input and text fields removed for yahoo answers (keeping it simple) <input type="Submit" value="Send Report"> </form> Tried to keep it a simple as possible........ cheersHi Just JR, I see, I was looking for a tick box, could I make a tick box the "Only Required" field? This way the user can complete the report and click submit, if the tick box is "not" ticked the Java returns a "box must be ticked" message. I added your script to my form but the form now does not send and I get an error saying object not defined.... I will add a - <input type="checkbox" id="required"> next to my submit button. now all I need is to make this checkbox the required eliment. Right?????? moreResolved Question: Web Design forms and RSS feeds?
Hi I am a new web designer, and looking for a simple solution to a good solid php scripted form which I can put on my website as well as a simple and easy way to put a news feed onto my website. What can I do?? moreVoting Question: PHP and html form question?
Hi, im trying to make a php mail to script, I was wondering what I need to do to make this work, I have a form located here: www.ablake.co.uk/hireme.html Here is the current PHP script I have: <?php $to = "hireme@ablake.co.uk"; $subject = "Hire me"; $email = $_REQUEST['email'] ; $message, $name, = $_REQUEST["message"] ; $name = $_REQUEST["name"] ; $headers = "From: $email"; $sent = mail($to, $subject, $message, $headers) ; if($sent) {print "Thankyou for contacting me, you will recieve a comformation email shortly."; } else {print "We encountered an error sending your mail"; } ?> I bascially want all the fields to included in the email which is sent to the address, but at the moment its only the main message box which is included. The form does email successfully to me, but as I said it only contains the message box content, not all of the other fields like company and name . Thank you! Andy moreResolved Question: Is this form processing code correct?
I downloaded this php file and put it in my web floder to process information from a form on my webfolder and send it to my email, but it doesn't seem to be working, any time I go onto my website and fill in the form and click on submit, the page goes to the default "your message has been sent" code of the php, rather than the page I told it t go to. Also, no new email concerning the form is sent to my email imbox. Is the php code correct? The email address i want it sent to is faiz.ahmad@agon-int.com and the page i want to be shown when the form is submitted is http://www.agon-int.com/Contact%20Us/Sent.html Thnx for your help <?php $my_email = "faiz.ahmad@agon-int.com"; /* Enter the continue link to offer the user after the form is sent. If you do not change this, your visitor will be given a continue link to your homepage. If you do change it, remove the "/" symbol below and replace with the name of the page to link to, eg: "mypage.htm" or "http://www.elsewhere.com/page.htm" */ $continue = "http://www.agon-int.com/Contact%20Us/Sent.html"; /* Step 3: Save this file (FormToEmail.php) and upload it together with your webpage containing the form to your webspace. IMPORTANT - The file name is case sensitive! You must save it exactly as it is named above! Do not put this script in your cgi-bin directory (folder) it may not work from there. THAT'S IT, FINISHED! You do not need to make any changes below this line. */ moreResolved Question: i write perl script that i can login to olx.com but i have errors,i need help to correct script?
my perl script: Code: #!/usr/bin/perl use WWW::Mechanize; use strict; print "Content-type: text/html\n\n"; my $username = "user"; my $password = "pass"; my $outfile = "out.txt"; my $mech = WWW::Mechanize->new( ); my $url = 'http://www.olx.com/login.php'; $mech->get($url); $mech->form_name('loginform'); $mech->field(username => "$username"); $mech->field(passwd => "$password"); $mech->click(); my $response = $mech->content(); print $response;i did not see that i can log into olx.com ,then you manual login to olx.com you see your username i need to login to olx.com and post ad with that script . moreResolved Question: MySQL error - Access denied. Please help - been stuck for 3 hours?
I am using a form to input data to a database using my uni web account. It won't work for some reason, can you help me? My error shows as this: An error occurred in script '...htdocs/includes/mysqli_connect.php' on line 14: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'unn_s006202'@'localhost' (using password: YES) Date/Time: 3-22-2010 14:22:18 moreResolved 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; 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 moreVoting Question: HELP!!! PHP doesn't recognise new lines?
Hi, I have this problem with php. I have made an html form including a text area this gets posted to a php script which processes it and the sends it to mysql. The problem is that when I make a new line in the html form it does not shoe up in php and mysql because instead of sending a <br> tag the html form only send spaces so php presumes that these are spaces. How can I change this. Please help. Thank you. moreResolved Question: Please, Please help me with my PHP script!?
Hello, Im trying to write a script, for sending a basic form to my email address. Everything seems ok, apart from i'm not recieving an email. Have I put the $mailto funtion in the wrong place? <?php $mailto = "myemailaddresshere@hotmail.co.uk" ; $name = $HTTP_POST_VARS['name']; $email = $HTTP_POST_VARS['email']; if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) { echo "<h4>Invalid email address</h4>"; echo "<a href='javascript:history.back(1);'>Back</a>"; } elseif ($name == "") { echo "<h4>No subject</h4>"; echo "<a href='javascript:history.back(1);'>Back</a>"; } elseif (mail($name,$email,$mailto)) { echo "<h4>Thank you for sending email</h4>"; } else { echo "<h4>Can't send email to $email</h4>"; } ?> Any help will be very much appreciated! moreVoting Question: I'm trying to get a PSP script to work?
The script below sends people to an error page even if everything is filled in can anyone help? <?php // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you // retain the credit link // get posted data into local variables $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "realmailremoved@security.com"; $Subject = "Patient Referral"; $Patient = Trim(stripslashes($_POST['Patient'])); $Address = Trim(stripslashes($_POST['Address'])); $Birtdate = Trim(stripslashes($_POST['Birtdate'])); $Ethnicity = Trim(stripslashes($_POST['Ethnicity'])); $Male = Trim(stripslashes($_POST['Male'])); $Female = Trim(stripslashes($_POST['Female'])); $Benefit = Trim(stripslashes($_POST['Benefit'])); $NI = Trim(stripslashes($_POST['NI'])); $Professional = Trim(stripslashes($_POST['Professional'])); $Medication = Trim(stripslashes($_POST['Medication'])); $Reason = Trim(stripslashes($_POST['Reason'])); $Referrer = Trim(stripslashes($_POST['Referrer'])); $Job = Trim(stripslashes($_POST['Job'])); $MHCN = Trim(stripslashes($_POST['MHCN'])); $Phone = Trim(stripslashes($_POST['Phone'])); $Date = Trim(stripslashes($_POST['Date'])); // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (Trim($Patient)=="") $validationOK=false; if (Trim($Address)=="") $validationOK=false; if (Trim($Birtdate)=="") $validationOK=false; if (Trim($Benefit)=="") $validationOK=false; if (Trim($NI)=="") $validationOK=false; if (Trim($Professional)=="") $validationOK=false; if (Trim($Medication)=="") $validationOK=false; if (Trim($Reason)=="") $validationOK=false; if (Trim($Referrer)=="") $validationOK=false; if (Trim($Job)=="") $validationOK=false; if (Trim($MHCN)=="") $validationOK=false; if (Trim($Phone)=="") $validationOK=false; if (Trim($Date)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Patient: "; $Body .= $Patient; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "Birtdate: "; $Body .= $Birtdate; $Body .= "\n"; $Body .= "Ethnicity: "; $Body .= $Ethnicity; $Body .= "\n"; $Body .= "Male: "; $Body .= $Male; $Body .= "\n"; $Body .= "Female: "; $Body .= $Female; $Body .= "\n"; $Body .= "Benefit: "; $Body .= $Benefit; $Body .= "\n"; $Body .= "NI: "; $Body .= $NI; $Body .= "\n"; $Body .= "Professional: "; $Body .= $Professional; $Body .= "\n"; $Body .= "Medication: "; $Body .= $Medication; $Body .= "\n"; $Body .= "Reason: "; $Body .= $Reason; $Body .= "\n"; $Body .= "Referrer: "; $Body .= $Referrer; $Body .= "\n"; $Body .= "Job: "; $Body .= $Job; $Body .= "\n"; $Body .= "MHCN: "; $Body .= $MHCN; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone; $Body .= "\n"; $Body .= "Date: "; $Body .= $Date; $Body .= "\n"; // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?> moreResolved Question: php - How to store a database value from html feedback form?
Ok so if i make a feedback form which displays name and email address I want that info to be transferred to a database via a php script. How do I do that? moreResolved Question: Email Form PHP Script?
hello i am try to make a email php script with a box for a name, email and finally the message i have got this so far <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $name = $_REQUEST['name']; $email = $_REQUEST['email'] ; $subject = $_REQUEST[''] ; $message = $_REQUEST['message'] ; mail( "my email@my.com", "Subject: $subject", $message, "From: $email" ); echo "Thanks for you email $name. Click here To Back to the Home Page"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mail_email.php'> Name: <input name='name' type='text' /> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <text area name='message' rows='15' cols='40'> </text area><br /> <input type='submit' /> </form>"; } ?> </body> </html> i want to add a validation for the email and i want to remove the subject and leave it as just a default subject so my AUDIENCE can not write the subject but only i can and i would like it to link back to the home page i don't know how to do this please help am a new php script got this from about.com please help and if you can please may you make a html form please moreVoting Question: need help with register .php file?
<?php include 'config.php'; function is_alphachar($text) { for ($i = 0; $i < strlen($text); $i++) { if (!ereg("[A-Za-z0-9]", $text[$i])) { return 1; } } } $form .= "Register a new username. Be sure to enter a <b>genuine</b> email as it will be used to recover your account.<br>"; $form .= "<form action=\"./register.php\" method=\"POST\">"; $form .= "Username: <br><input type=\"text\" name=\"username\"><br>"; $form .= "Your email: <br><input type=\"text\" name=\"email\"><br>"; $form .= "Password: <br><input type=\"password\" name=\"password\"><br>"; $form .= "<input type=\"submit\" value=\"Create!\">"; $form .= "</form>"; if($_POST[username] == ""){ echo $form; } elseif(strlen($_POST[password]) < 6){ echo $form; echo "<br> Error password must be 6 characters or more"; } else { //Database Information $dbhost = "%%%%%%"; $dbname = "%%%%%%%%%"; $dbuser = "%%%%%%%%%%%"; $dbpass = "%%%%%%%%%%%"; //Connect to database mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error()); mysql_select_db($dbname) or die(mysql_error()); $sql = "SELECT username FROM users WHERE username = '$_POST[username]'"; $sql2 = "SELECT email FROM users WHERE email = '$_POST[email]'"; $result = mysql_query($sql) or die ("Couldn't execute query."); $result2 = mysql_query($sql2) or die ("Couldn't execute query."); $num = mysql_num_rows($result); $num2 = mysql_num_rows($result2); if (is_alphachar($_POST[username]) == 1) { echo $form; echo "Invalid Username. Only numbers/letters and underscores are allowed.<br>"; die; } if ($num == 1) { echo "Error, username already exists!"; } elseif ($num2 == 1) { echo "Error, that email address has already been registered. Please select a different one."; } else { $query = "INSERT INTO users (username, password, email) VALUES ('$_POST[username]', '$_POST[password]', '$_POST[email]')"; $resultB = mysql_query($query, $connection) or die ("Coundn't execute query."); echo "Congratulations $tmpname. Your account has been created and added to database"; echo "<br><a href=\"login.php\">Back to login area</a>"; } } ?> that is the script , it works for a start , i enter my info and then when i clich on create it says Couldn't execute query. why is this and what is wrong . how do i fix it thankyou Jamie moreResolved Question: my reigster.php file wont work?
my register script is <?php include 'config.php'; function is_alphachar($text) { for ($i = 0; $i < strlen($text); $i++) { if (!ereg("[A-Za-z0-9]", $text[$i])) { return 1; } } } $form .= "Register a new username. Be sure to enter a <b>genuine</b> email as it will be used to recover your account.<br>"; $form .= "<form action=\"./register.php\" method=\"POST\">"; $form .= "Username: <br><input type=\"text\" name=\"username\"><br>"; $form .= "Your email: <br><input type=\"text\" name=\"email\"><br>"; $form .= "Password: <br><input type=\"password\" name=\"password\"><br>"; $form .= "<input type=\"submit\" value=\"Create!\">"; $form .= "</form>"; if($_POST[username] == ""){ echo $form; } elseif(strlen($_POST[password]) < 6){ echo $form; echo "<br> Error password must be 6 characters or more"; } else { $connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error()); $sql = "SELECT username FROM users WHERE username = '$_POST[username]'"; $sql2 = "SELECT email FROM users WHERE email = '$_POST[email]'"; $result = mysql_query($sql) or die ("Couldn't execute query."); $result2 = mysql_query($sql2) or die ("Couldn't execute query."); $num = mysql_num_rows($result); $num2 = mysql_num_rows($result2); if (is_alphachar($_POST[username]) == 1) { echo $form; echo "Invalid Username. Only numbers/letters and underscores are allowed.<br>"; die; } if ($num == 1) { echo "Error, username already exists!"; } elseif ($num2 == 1) { echo "Error, that email address has already been registered. Please select a different one."; } else { $query = "INSERT INTO users (username, password, email) VALUES ('$_POST[username]', '$_POST[password]', '$_POST[email]')"; $resultB = mysql_query($query, $connection) or die ("Coundn't execute query."); echo "Congratulations $tmpname. Your account has been created and added to database"; echo "<br><a href=\"login.php\">Back to login area</a>"; } } ?> when i enter my details then click on register it comes up with a error message , i carnt say what the error message is because my site is currntly down but if you carnt tell by the code and what to know the error message just say send me error message and i will email it to you when my site server is back up , or you can email me asking for the error message , all i can remember is that the error message was saying about line 29 if that helps thanks jamie moreResolved Question: I need some php scripting help for a web form?
I have a php script on my website to handle a form on a webpage, but I'm a bit clueless when it comes to php scripting. I have entered my email address in the php script (this address is what the form will be sent to). When I trial the form and submit, it says successfully sent but I don't recieve any emails. I understand that the web space host needs to be able to accept php to do this, which it is. I'm not sure how a host is able to handle a request to send an email though.My web host uses cPanel. moreResolved Question: php mailer script not fully working in opera or IE?
I'm working on a site that has a contact form. I use a php script to send the email which also contains a section of xhtml confirming to the user that the message has been sent. In firefox, chrome, safari, nn, it works perfectly but in opera and IE the xhtml does not appear. It's a pain as the page has a link back to the site. I've checked that i'm receiving the emails and all the browsers tested DO submit the data without a hitch. i'm not surprised by IE but was slightly disappointed by opera as i find it a great little browser! The site is www.wandleff.co.uk and the code i'm using for the mailer and conformation page is as followed: <?php if(isset($_POST['submit'])) { $to = "my email here!@yahoo.com"; $subject = "Hello Art"; $name_field = $_POST['name']; $email_field = $_POST['email']; $message = $_POST['message']; $dropdown = $_POST['drop_down']; $body = "From: $name_field\n Name: $name_field\n E-Mail: $email_field\n Message:\n $message\n Heard About You through: $dropdown\n "; mail($to, $subject, $body); } else { echo "blarg!"; } ?> <html> <head> <title>Contact Send Conformation<title> <style type="text/css"> body {background-color: #EEE8AA; background-image: url("../images/back.gif"); background-repeat: repeat;} #container {width: 500px; border: 3px solid #EEE8AA; background-color: #800000; text-align: left;} h1, h3 {font-family: arial, monospace; color: #EEE8AA; padding-left: 10px;} #juke {padding-left: 10px;} a:link, a:visited {font-family: arial, monospace; color: #EEE8AA; padding-left: 10px;} a:hover {font- family: arial, monospace; color: black; padding-left: 10px;} </style> </head> <body> <div align="center"> <div id="container"> <img src="../images/wandleff_banner.jpg" width="500" height="120"/> <h1>Thank you!</h1> <h3>Your message has been sent to Arthur</h3> <a href="contact.htm">Back to site</a><br /><br /> </div><!--end of container--> </div> </body> </html> Any help would be cool. Also i'm very new to web design so i'm no doubt using messy code, etc although feel free to make negitive comments...... it's the best way to learn!! best regards aOkay, here goes, when i submit the form the php file sends the info to the email in the script. There should be a conformation page that thanks the user and tells them that the data has been sent. It also has a link back to the site which is important. In firefox, NN, chrome & safari this all happens without any problems and the data is received. When you submit the form in IE and opera the conformation page does not appear, only a blank screen. The information is still sent to the email address though. which is good but my user gets no back to the site link, which is very bad. As for verifiying the info, i haven't even begun to do that but any pointers in the right direction would be fanastic. best regards a moreResolved Question: PHP Form (over several pages) script?
I am looking for a php form script that the user completes over several pages and then script send the info from all pages in one go. Can anyone recommend a script (prefer a free script) or a location where I might find one. Or a resource that I can use to build one myself Regards Dave K moreResolved Question: PHP Parse Error How to get past this Parse Error?
Hi All, Check line 3, this line is where the email address the script sends the form to is entered, but I want to be able to edit this address in an admin page. to do this I would like this script to read the address/addresses from a text file. When I include I get a Parse error due to the " marks, My PHP language skills are limited and I cant get past this. There is a lot more script but when I enter an email address as the script is intended it works fine so it is only line 3 I am having trouble with <?php // config details $MailToAddress = "<? include("email.txt"); ?>"; // email addresses $email = "webform@mydomain.com"; $redirectURL = "http://mydomain.com/msg_cont.php"; // the URL of the thank you page. $MailSubject = "[Incident Report]"; // the subject of the email $sendHTML = true; //set to "false" to receive Plain TEXT e-mail $serverCheck = false; // if, for some reason you can't send e-mails, set this to "false" $counter_file = "./counter.cnt"; There is a lot more script but this is all working fine. How do I include the email address that is stored on a separate text file? (Please forgive any spelling errors - the Answer spell check function get confused with the above code so I decided not to use it)Thank you Ray - I just needed a nudge in the right direction - I used the "file_get_contents();" in the end.... Thanks Again moreVoting Question: Making a simple PHP Form?
Hello. I want to pass a simple variable from a HTML form to a PHP script. Below is the HTML Form:- === <form id="Form1" action="test.php" method="post"> Folder to create: <input type="text" name="$DIR" /><br/> <input type="Submit" name="Form1_Submit" value="Login" /> </form> === Below is the PHP Script in a seperate file:- === <?php $result=shell_exec("/home/anthony.robinson/tools/makedir $DIR") echo($result); ?> === What I want is for the $DIR in the PHP Script to be whatever is typed into the $DIR field within the HTML Form. Is this possible? Thanks. moreResolved Question: How can I test my PHP Script?
I am teaching myself and am a complete beginner... I have created a form in html and written a php script to process the data to my email address, I have tested it in Xampp, but is there a way I can check I will receive the email? I would like to receive the email containing the data from my form to get an idea of how it looks before I upload to the server. Is this possible? Thank you I really appreciate any help : ) moreResolved Question: post variable to a page in process.php script?
I have an update form update.php that updates entries in a mysql db. On submit entries are updated using a php script in a file called process.php i would like the process.php script to redirect to a page called results.php but i need a $value from update.php to be passed to results.php. iv got no idea. ive used header('Location: but im stuck with the $value bit. (sorry for the confusion!) any help would be appreciated- moreResolved Question: Email Attachment Script for my website?
I'm working on a recruitment website with a email form but i need a php attachment script , i went through many sites but i couldn't get it , my website on www.viviti.com and my domain on bravenet.com can someone help me? , my ,msn id chulan91@hotmail.com and yahoo chulanmarapana@yahoo.com Thanks Again moreResolved Question: Why would a web form (using PHP) only work sometimes?
The form works most of the time but every now and then when the submit button is clicked, it returns the error page and no email is sent out. Validation was done with with Javascript and PHP. Is it most likely a HTML / PHP script / servers issue? I tested with more than one email address. How can I ensure a website form is almost foolproof? moreResolved Question: What's wrong with my mail script?
Please tell me what's wrong with my script, it works perfectly when sending an email without an attachment but nothing gets through when sent with an attachment. <html> <head> <title>Katya Embroidery Email Sender</title> </head> <body> <?php //check that required data has been provided if(!$_POST['email']) { die("You did not provide an email address, please click the back button and enter one. Thank you."); } if(!$_POST['name']) { die("You did not provide a name, please click the back button and enter one. Thank you."); } //get data from form. $name = $_POST['name']; $company = $_POST['company']; $email = $_POST['email']; $telephone = $_POST['telephone']; $country = $_POST['country']; $comments = $_POST['comments']; //upload file if($_POST['attachment']) { $attachment = $_FILES['attachment']['tmp_name']; $attachment_type = $_FILES['attachment']['type']; $attachment_name = $_FILES['attachment']['name']; if(is_uploaded_file($attachment)) { //read file $file = fopen($attachment,'rb'); $data = fread($file,filesize($attachment)); fclose($file); //generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; } } //set the email address this form sends to and the subject you'd like to appear. $to = "email@email.com"; $subject="KATYA EMBROIDERY - WEB SITE ENQUIRY FORM"; //generate the email headers $headers = "From: $name <$email>\n"; $headers .= "Reply-To: $name <$email>\n"; if($_POST['attachment']) { $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; } //generate the email body $body = "Name: $name\nCompany / Organisation: $company\nEmail: $email\nTelephone: $telephone\nCountry: $country\n\n$comments"; //generate the message if($_POST['attachment']) { $body = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $body . "\n\n"; //Base64 encode the file data $data = chunk_split(base64_encode($data)); //add the attachment $body .= "--{$mime_boundary}\n" . "Content-Type: {$attachment_type};\n" . " name=\"{$attachment_name}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$attachment_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } //send the email $sent = @mail($to, $subject, $body, $headers); echo $sent ? 'Your message has been sent to Katya Embroidery, we try to reply to emails within 24 hours.<br /><a href="contact.html">Click here to return to the website.</a>' : 'Error: Message was not send, please phone us to notify us of this problem, Thank you.'; ?> </body> </html> moreVoting Question: Modifying PHP Contants?
I want to modify the value of a constant stored in a PHP script using an HTML/PHP form from another page... Question is how do I go about it... moreResolved Question: i need php cookie help!!!?
right this script works fine but i want to save the variable $sport_list as a cookie then echo the cookie so when a user comes back they can see what they put. but when i set the cookie and echo it there is no underlining on the latest addition to the variable like when i echo the variable directly... take a look... so i want to echo the cookie instead of the variable but still have the underlining i get when echoing the variable <?php $sport_list=''; if (isset($_POST['sports'])) { $sport = $_POST['sports']; $dts = date("G:i:s d/m/y"); if ($_POST['sport_list']) { $sport_list = "<li style='text-decoration: underline;'>$sport $dts" . $_POST['sport_list'] . "</li>"; } else { $sport_list = "<li>$sport $dts</li>"; } } setcookie("sport",$sport_list); ?> <!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> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> <title>styles</title> <link rel="stylesheet" type="text/css" media="screen, print, projection" href="layout.css" /> </head> <body> <div id="layout"> <div id="pattern">""+</div> <div id="topgradient"></div> <div id="background"></div> <div id="layer23"></div> <div id="nixonscodetest"></div> <div id="shape10copy"></div> <form name="sports" action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post" > <input type="hidden" name="sport_list" value="<?php echo($sport_list); ?>"> <div id="three"> <p> <input type="radio" name="sports" id="e_3" value="FOOTBALL" onclick="alert(value + id);document.sports.submit();"/><label for="e_3">FOOTBALL</label></p> <br /> </div> <div id="four"> <p> <input type="radio" name="sports" id="e_4" value="RUGBY" onclick="alert(value + id);document.sports.submit();"/><label for="e_4">RUGBY</label></p> <br /> </div> <div id="five"> <p> <input type="radio" name="sports" id="e_5" value="FMX" onclick="alert(value + id);document.sports.submit();" /><label for="e_5">FMX</label></p> <br /> </div> <div id="two"> <p> <input type="radio" name="sports" id="e_2" value="SKATE" onclick="alert(value + id);document.sports.submit();)"/><label for="e_2">SKATEBOARD</label></p> <br /> </div> <div id="one"> <p> <input type="radio" name="sports" id="e_1" value="bmx" onclick="alert(value + id);document.sports.submit();" /><label for="e_1">BMX</label></p> <br /> </div></form> <div id="navigationlinearrows"></div> <div id="shape11copy6"></div> <div id="shape11copy7"></div> <div id="welcome"> <p>Welcome:</p> </div> <div id="shape26"></div> <div id="phasellusinfelisidnullaconsequatpharetrasedattortor"> <p> <div id="container"> <?php echo($sport_list); ?> <form action="../../Documents/code test/process2.php" method="post"> <input type="radio" name="radiogroup" id="rg_01" value="Yes" checked="checked" /><label for="rg_01">Yes</label> <input type="radio" name="radiogroup" id="rg_02" value="No" /><label for="rg_02">No</label> <br /> <select name="list"> <option>Name your favorite pet</option> <option>dog</option> <option>cat</option> <option>rabbit</option> <option selected="selected">horse</option> </select> <br /> <button>submit</button> </form> </div></p> </div> <div id="shape11copy2"></div> <div id="cod"> <p> </p> </div> </div> </body> </html> moreResolved Question: i need some php help!?
I need some php help!? the below script is my page so far. this all works great and when you click a radio button it adds to the running text list the with the last item clicked at the top along with the date and time. however i would like this info saved in a cookie so when the user closes an reopens the page the same results appear. i would also like the most recent (top line) of the running text list to be underlined any ideas people cheers...code below... <html> <head> <title>Test Sport List</title> </head> <body> <?php $sport_list=''; if (isset($_POST['sports'])) { $sport = $_POST['sports']; $dts = date("G:i:s d/m/y"); if ($_POST['sport_list']) { $sport_list = "<li>$sport $dts" . $_POST['sport_list'] . "</li>"; } else { $sport_list = "<li><u>$sport $dts</li><u />"; } } ?> <form name="test" action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post" > <input type="hidden" name="sport_list" value="<?php echo($sport_list); ?>"> <input type="radio" name="sports" id="01" value="skate" onclick="document.test.submit();" /><label for="01">skateboard</label> <input type="radio" name="sports" id="02" value="football" onclick="document.test.submit();" /><label for="02">football</label> </form> <?php echo($sport_list); ?> </body> </html> moreResolved Question: i need a bit of php help.?
I need some php help!? the below script is my page so far. this all works great and when you click a radio button it adds to the running text list the with the last item clicked at the top along with the date and time. however i would like this info saved in a cookie so when the user closes an reopens the page the same results appear. i would also like the most recent (top line) of the running text list to be underlined any ideas people cheers...code below... <html> <head> <title>Test Sport List</title> </head> <body> <?php $sport_list=''; if (isset($_POST['sports'])) { $sport = $_POST['sports']; $dts = date("G:i:s d/m/y"); if ($_POST['sport_list']) { $sport_list = "<li>$sport $dts" . $_POST['sport_list'] . "</li>"; } else { $sport_list = "<li><u>$sport $dts</li><u />"; } } ?> <form name="test" action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post" > <input type="hidden" name="sport_list" value="<?php echo($sport_list); ?>"> <input type="radio" name="sports" id="01" value="skate" onclick="document.test.submit();" /><label for="01">skateboard</label> <input type="radio" name="sports" id="02" value="football" onclick="document.test.submit();" /><label for="02">football</label> </form> <?php echo($sport_list); ?> </body> </html> moreResolved Question: radio button form help!!!?
well i have a 5 radio buttons and i want it so when ever you click on the radio button it sends the value of that button to a page called process.php so yeah i need to make it send the value of the radio button when clicked on to my php script cheers moreResolved Question: Return ID field for current record that was entered in MySql database?
I have a php script that enters customer details into a MySql database by requesting the customer to fil in a form - which works perfectly. Each entry is assigned a unique auto_increde.. ID number. After the customer has completed the form i would like to display the ID number that the database assigned them. i would like to display this on a webpage and on an email that is issused by the process.php script. how would i go about doing this?? Ive learnt how to use: SELECT * FROM tablename WHERE fieldnamewhatever='value' but obviously the value bit is whatever the current record is. (if you get what i mean. Thanks alot guys !!! moreResolved Question: Looking for a simple PHP to MySQL solution?
Hi, I was wondering whether there is a a free simple to understaind scipt out there which can capture data inputted by a user in a contact form, place it into a MySQL database. Which can then be downloaded by the admin user as a CSV file, via ftp. Is there any like this available as a script or as a plugin to a free CMS solution. Thanks in advance for any help. Gary moreVoting Question: .php Upload Form/File?
Hi I'm new to .php. I think I have successfully uploaded my .php file to my hosting account. It should be available to view here: http://www.2digital.eu.pn/upload.php I'm trying to create a section on my website where viewers can upload their photos. The .php script above is my server side script and the actual upload form is here: (SCROLL TO THE BOTTOM) http://www.2digital.eu.pn/virusremoval Can someone please help a .php noob? Thanks in Advance moreResolved Question: how can i create an email link to a browsers default outbox?
Hello.... Is it possible to edit the code in DWCS3 so that i can create an email link within my website which opens the browsers default/preffered outbox? So far, when i create an email link and test it, Windows opens up 'outlook'. This is next to useless as I'm guessing that most people will use Yahoo, Gmail, Virgin, Orange and so on.... My other option is (which i'd prefer) to create data fields for feedback/contact forms but, I'm not experienced at ASP or PHP etc.. asuming that this type of data entry requires server side scripting? Anyone have some ideas? Thanks everybody... moreResolved Question: Php form script ?? Email verify?
I have a php form with: Email: <input type="text" name="email1" /> Retype Email: <input type="text" name="email2" /> how would i add a pop up message that comes up if the second email entered doesnt match the first?? Thankyou!!! moreResolved Question: upload file with only html?
Can yu upload a file to your own web server without having to use a php, asp file, i am sure i did this before using only html, for ex, <form action="send.php" enctype="multipart/form-data" method="post"> <input type="file" name="datafile" size="40"> <input type="submit" value="Send"> </form> that is an example i found but it uses send.php, say i don't want to use a server side script, can i just use html somehow....it's not that i don't know hoow to set up php but i want to give this to someone that wont wantto setup php.... moreResolved Question: Adding HTML into PhP?
Hi, I have added the <strong></strong> tags to a few sections of my PhP script so that the output email I receive makes it easier to differentiate between the question and the answer. Here is the bit of PhP code: <strong>Name:</strong> " .$name ."\n" ."\n<strong>Telephone:</strong> " .$telephone ."\n" ."\n<strong>Email:<strong> " .$email_from ."\n" ."\n<strong>How did you hear about us?:</strong> " .$hear ."\n\n" ."\n<strong>How would you like us to contact you?:</strong> Via" .$contact ."\n" ."\n<strong>Customer's Message:</strong> " ."\n\n" .$comments; When I test my form, it works, however only the first two, Name and Telephone are bold. The rest are bold but are making the answer bold too. How can I make it so that only "Name:, Telephone:, Email; How did you hear about us:" are bold but not the answer the user gives? Why are the first two (name and telephone) working properly but the rest aren't? Thanks very much (Newbie to PhP)LoL! I'm such a nabcake. Thanks you guys :P moreResolved Question: More PhP Form Dilemmas?
Hi, Added a couple questions on here last night and I got a lot of help for a script I have. (I am a total PhP newbie). Most of it is working now, however I keep getting an error; "unexpected ";" on line 18. That line of code is: $validationOK = (trim(isset($EmailFrom)) == "") || (trim($FullName) == "") || (trim($TelNo) == "") || (!is_numeric($TelNo)) ? 0 : 1; If i take away the ; about 12 errors come up. I really dont know how to work around it. Here is the whole form script. <?php error_reporting(E_ALL); // get posted data into local variables if (isset($_POST["EmailFrom"])){ $EmailFrom = trim(stripslashes($_POST['EmailAddress'])); $EmailTo = "Johnsmith@.com"; $Subject = "Incoming Mailt"; $FullName = trim(stripslashes($_POST['FullName'])); $TelNo = trim(stripslashes($_POST['TelNo'])); $EmailAddress = trim(stripslashes($_POST['EmailAddress'])); $YourMessage = trim(stripslashes($_POST['YourMessage'])); $Hear = trim(stripslashes($_POST['Hear'])); $ContactYou = trim(stripslashes($_POST['ContactYou'])); } // validation $validationOK = (trim(isset($EmailFrom)) == "") || (trim($FullName) == "") || (trim($TelNo) == "") || (!is_numeric($TelNo)) ? 0 : 1; if(!$validationOK){ echo "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; exit; } // prepare email body text $Body = ""; $Body .= "FullName: "; $Body .= $FullName; $Body .= "\n"; $Body .= "LastName: "; $Body .= $LastName; $Body .= "\n"; $Body .= "TelNo: "; $Body .= $TelNo; $Body .= "\n"; $Body .= "EmailAddress: "; $Body .= $EmailAddress; $Body .= "\n"; $Body .= "YourMessage: "; $Body .= $YourMessage; $Body .= "\n"; $Body .= "Hear: "; $Body .= $Hear; $Body .= "\n"; $Body .= "ContactYou: "; $Body .= $ContactYou; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; } ?> If someone could help me turn this around I would be eternally grateful, have been trying to get it to work for 2 days. I have turned error reporting off (i know its in there but usually its off) and it skips the error stage but still directs it to the error.html and doesnt actually send an email. ThanksThanks for the help, I have added the line of code to each. (again total PhP newbie) So i have probably messed this whole thing up. Is this correct? // get posted data into local variables if (isset($_POST["EmailFrom"])){ $EmailFrom = trim(stripslashes($_POST['EmailAddress'])); $EmailTo = "support@foxandmemphis.com"; $Subject = "Support"; $FullName = (isset($_POST['FullName'])) ? trim(stripslashes($_POST['FullName'])) : ""; $TelNo = (isset($_POST['TelNo'])) ? trim(stripslashes($_POST['TelNo'])) : ""; $EmailAddress = (isset($_POST['EmailAddress'])) ? trim(stripslashes($_POST['EmailAddress'])) : ""; $YourMessage = (isset($_POST['YourMessage'])) ? trim(stripslashes($_POST['YourMessage'])) : ""; $Hear = (isset($_POST['Hear'])) ? trim(stripslashes($_POST['Hear'])) : ""; $ContactYou = (isset($_POST['ContactYou'])) ? trim(stripslashes($_POST['ContactYou'])) : ""; (its still not working) just taking me to the error.html, Have error reporting on and no errors so its one step closer :)oh and this bit : // validation $validationOK = ( (trim(isset($EmailFrom)) == "") || (trim($FullName) == "") || (trim($TelNo) == "") || (!is_numeric($TelNo)) ) ? 0 : 1; if(!$validationOK){ echo "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; exit; } moreResolved Question: In AVG Free a Web Shield Alert box, keeps coming up onscreen stating ‘Accessed File is infected’?
This has been happening for several weeks and of course, you don't receive technical support if you have AVG free! The thing appears as: “Exploit JavaScript Obfuscation”; wrksqumczgeilnapirro.cn/s_t_t.php” and ends with the date and time and then, “File”;”C:\WINDOWS\system32\mshta.exe” and this forms a Multiple threat detection in Web Shield. We don't need to be logged on to anything on the internet to get this alert every 15 minutes but it does happen every time we are online. A whole list of this one ‘obfuscation’ appears in Web Shield findings. Can anyone give us any information with which to remove the JavaScript Obfuscation or how to prevent it happening, please? We are aware that these obfuscations come through via hackers who use Java Script to send them and because of this we are reluctant to download any updates from Java Script (Sun Systems). moreResolved Question: How do I make a form that submits a numbered value into the URL?
I have a "store" ... it's really just a quoting "engine". One of the variables I use is the quantity of the product I want to buy. Most of them are just text links, as they are only available in blocks of tens, hundreds, or even thousands. What I want for one particular product is an exact quantity. This will make it easier for calculating the entire price, especially since the prices are grouped depending on the quantity (I have that bit covered ... I think). How do I have the number put into the URL? I am using HTACCESS for my URL (purely for aesthetic reasons), so the URL would be: /blah/blah/100/blah/ How am I best doing this? Javascript, PHP, or CGI? And what would the script look like? Especially if it is a really small script? Thanks in advance.Ok, maybe I should be more specific ... I have a form and a text box. This is how I have the quantity put in. Once I submit the form, whatever I put in the text box goes into the URL. However, the URL must still be in the same format I have it, which is /blah/blah/number/blah/. Is that possible with PHP / Javascript / CGI? moreResolved Question: Anyone help with php upload script?
I'm trying to get an image upload script to upload more than one file at a time, here is the script in question.. <?php if ($_REQUEST[completed] == 1) { $newname = uniqid("whc").".jpg"; move_uploaded_file($_FILES['mailfile']... "photos/$newname"); } ?> <html> <head><title> - </title></head> <body><h1> - </h1> <?php if ($_REQUEST[completed] != 1) { ?> <b>Please upload an image</b><br> <form enctype=multipart/form-data method=post> <input type=hidden name=MAX_FILE_SIZE value=1500000> <input type=hidden name=completed value=1> <input type=file name=mailfile> <br> <input type=submit></form> <?php } else { ?> <b><a href=>Return</a></b> <?php } ?> Could anyone give me any tips? it would be greatly appreciated. Thanks moreResolved Question: posting data from external site to php script?
I have a script which passes data to another php script just using hidden form variables, all works fine. Though the problem if, if someone posts data to the php script from an external site after simply viewing the output php source code, then can force data into the php script which did not actually get generated by the hosting site... the only thing I can think of doing is checking the referrer url to see where the data was coming from, but with programs which can fake the referrer url it does not really help much. So if there any way to check and block data being sent to the php script on the server from external sites ?i dont know of anyother way to pass data.. the very first php script post's on load all the hidden html variables, so they are never seen... what I did was have several options on my php page, so the url hold page=1 or page=2 etc, and the php script just checks that and outputs whatever page. however, the post reloads the page as its posted to itself, so the inital variables which were passed were all lost on the page reloaded.. so what I did was to reoutput the variables as hidden form data again, however that data is now visiable in the source for the page. I did try to use sessions, but to cut a long story short its doesn't look like its going to work as part of the site already uses sessions and I didn't write that part.. I know the session variables, but i dont know how to "connect" to the session which the site actually started.. so I resorted to reposting the data using hidden variables.. which is a BAD idea as I just found out, I dont see any other options :-( moreResolved Question: Help with a php file and contact form?
Hi I have my website uploaded now where I used a template bought. The template has a Contact Us form imbedded. The php form that came with the template was this; <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head><title>401 Authorization Required</title> <style type="text/css"> <!-- h1 { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 24px; color:#333333; line-height:19px; font-weight: 200; text-transform: uppercase; } p { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color:#333333; line-height:19px; } --> </style></head><body><br> <h1>Internal server error </h1> <p> We’re sorry for the inconvenience, but there has been an internal server error. Please click on the back button to return to the former page. </p> </body></html> and it just gives a message saying there was an internal error. I created my own ; <?php $your_company = $_GET['company']; $your_name = $_GET['your_name']; $your_telephone = $_GET['telephone']; $your_email = $_GET['email']; $your_message = $_GET['message']; $recipient_email = "info@pctech.com.eg"; $subject = "from " . $email; $headers = "From: " . $your_name . " <" . $email . ">n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "<html><head><title>Contact letter</title></head><body><br>"; $content .= "Company: <b>" . $your_company . "</b><br>"; $content .= "Name: <b>" . $your_name . "</b><br>"; $content .= "Telephone: <b>" . $telephone . "</b><br>"; $content .= "E-mail: <b>" . $email . "</b><br><hr><br>"; $content .= $message; $content .= "<br></body></html>"; mail($recipient_email,$subject,$content,$headers); ?> <html> <body bgcolor="#282E2C"> <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold"> Your message was sent. Thank you. </div> </body> </html> <script>resizeTo(300, 300)</script> But it still isnt working. if anyone can I would appreciate them going to www.pctech.com.eg and on the contact us page and try the form urself to see the error page u get. can anyone shed some light on this error and help. I would be sooo grateful. Also is there any way I can be sure whether PHP is enabled thrpugh my host or whether I have to use ASP I have emailed them but not had an answer. Was just checking whether there was a way i could check for myself. Thanks moreResolved Question: PHP buttons: <input type="submit" class="button" :?
Hi I have 2 separate php scripts, each calling a different class, first one submits form data for contact us purposes, 2nd one firstly lets you browse a file on your computer and then upload the file. I have a php file that includes both forms above, along with their buttons. Question: I want to have one button to do both tasks, instead of 2 separate buttons, so 1 button will submit contact info and also upload data? My button codes: **************************** Submit button - using Class to send name,email,message information (contact us info) **************************** <input type="submit" class="button" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>> *************************** Upload button - using Class to upload file to server *************************** <form name="upload" id="upload" method="POST" enctype="multipart/form-data" action="<?=$_SERVER["PHP_SELF"]?>"> <td align=center><input type="submit" name="submit" id="submit" value="Upload"></td> Thanks In Advance Tovia singer moreResolved Question: HTML form input type "FILE" and coping with existing files ?
I'm using PHP to create my scripts and I've created a few functions which allow people to use an HTML form to upload a file to the web server and it all works fine, people can upload. When my current script detects that the user is attempting to upload a file and the file already exists on the web server it just drops out with an error and doesn't process it. I altered this in my development version so that the user is given the option to confirm the overwrite of the file on the web server by re-selecting the file for download but ideally what I want to do is just have the form pre-filled and not offer them the option of re-selecting the file. Is this possible ? For example, I want the script to take the $_FILES['uploaded_file'] and re-post it back to the page after the user clicks the "Overwrite" button... That's it, nothing else visible on the form apart from the "Overwrite" button, can't seem to figure it out. Thanks in advance._____ Elric : The application I'm creating requires an overwrite ability and using a time stamp is a good idea to avoid conflicting names, which I've used in the past many times, but in this case it's not applicable. What I want to do is take the exact same submission and re-submit it, the problem is that I'm not sure how I upload the file again without offering up another FILE input in the form... Basically I want to do exactly what I am already doing but in a simpler way to avoid the user having to re-select the file. I think I'll look at the .tmp file which is created after the initial upload and see if I can do something with that._____ Nil : Stupid spam bot. moreResolved Question: What should be happening with this PHP script?
I am trying to go over some PHP lessons. It is a bit out dated but it is the only site i have found that i can understand. Basically: This is the starting page of this part of the course PHP and HTML forms on the same page - http://www.homeandlearn.co.uk/php/php4p1.html This is my code: PHP in the head section: if (isset($_POST['Submit'])){ $username = $_POST['username']; if ($username == 'letmein'){ echo ("Welcome back friend!"); } else{ echo("Your not a member of this site!"); } } and the form: <form name="form1" method="POST" action="basicForm.php"> <input type="text" value="username" name="username"> <input type="Submit" name="Submit1" value="login"> </form> when i load the page and enter the right/wrong user name, should i get the welcome/not a member message or not as i am just getting is the form with the value 'username' in the box. The page just looks like it is reloading. Hope this makes sense Thanks in advance moreResolved Question: how do i make a php registration and login form i keep geting an error on line 54 ?
Parse error: parse error in login.php on line 54 what the hell line 54 is "</html>" how is that an error this is my php script for my registration form <?php session_start();?> <html> <head></head> <body> <?php // Connects to your Database mysql_connect("92.239.178.68", "username", "password") or die(mysql_error()); mysql_select_db("users") or die(mysql_error()); //This code runs if the form has been submitted if (isset($_POST['submit'])) { //This makes sure they did not leave any fields blank if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) { die('You did not complete all of the required fields'); } // checks if the username is in use 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 the name exists it gives an error if ($check2 != 0) { die('Sorry, the username '.$_POST['username'].' is already in use.'); } // this makes sure both passwords entered match if ($_POST['pass'] != $_POST['pass2']) { die('Your passwords did not match. '); } // here we encrypt the password and add slashes if needed $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); $_POST['username'] = addslashes($_POST['username']); } // now we insert it into the database $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?> <h1>Registered</h1> Thank you, you have registered - you may now login</a>. </body> </html> moreResolved Question: PHP: Xhtml confusion using javascript commands with onchange?
I had asked a few previous questions about the selection box and options to reload pages etc..,. I understand when using javascript within xhtml to use <script> tags. However in my php file I can used the command:- <select ... onchange='window.location.reload()' > With the command "window.location.reload()" is javascript however "window.form.submit" where a submit button is present errors due to not understanding what a window.form element is. This has confused me, why cant I simulate the action of pressing the submit button within the onchange? ThanksIts the command "window.form.submit()" Im having issues with. moreResolved Question: HTML/PHP; can you see an error?
I have worked out that these lines; if ($_POST[location] == ""); header ("Location: redirect_form.html"); wont be executed because of an error in this script. Can anyone see the error??? <html> <head> <title>Redirection Form</title> </head> <body> <FORM METHOD="post" ACTION="do_redirect.php"> send me to: <SELECT name="location"> <OPTION value=" ">-- Select One --</OPTION> <OPTION value="http://www.i2ii.com/">i2i Interactive</OPTION> <OPTION value="http://www.thickbook.com/">Thickbook.com</OPTION> <OPTION value="http://www.php.net/">PHP home</OPTION> <OPTION value="http://www.zend.com/">Zend Technologies</OPTION> </SELECT> <P><INPUT TYPE="submit" NAME="submit" VALUE="Go!"></p> </form> </body> </html> p.s i get this error... Use of undefined constant location - assumed 'location and the header can not be modified error<? if ($_POST['location'] == "") { header ("Location: redirect_form.html"); exit; } ?> ok thats what it should look like..... no errors!! No output :( Just gives em a blank screensorry i needed the semicolon after the brackets <? if ($_POST['location'] == " "); { header ("Location: redirect_form.html"); exit; } else { header ("Location: $_POST['location']"); exit; } ?> now error on line 6 wtf! moreTop Php Forms Script Links
PHP Form Processor Scripts | Search & Download Software Programs FreePHP Form Processor Scripts Search & Download Software Programs Free. Review before you use or buy a script! Let Hot Scripts uncover the best free, open source and commercial ... |
PHP Tutorial: Writing Your First PHP Script: A Feedback Form (a ...Getting Started With PHP: Feedback Form (or Form to Mail) Script |
PHP Form - PHP Form Tutorial - PHP Form ScriptCollect data from HTML forms to process with a PHP script as shown in our tutorial |
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 ... |
Form Processor Scripts - PHP ScriptsForm Processor Scripts for developers and programmers both free and commercial. |
PHP Form Mail Script - STADTAUS.comWith this PHP formmailer script you are able to put a contact form on your website. Both HTML layout and e-mail layout are fully customizable by templates. |
Form To Email PHP Form Mail ScriptFormToEmail is a form-to-email form processor script written in PHP. It comes in a basic free version and a Pro version with added features. |