Form PHP Script
Hola
Im in need of the best PHP Script form that I can get (buy)
I got a form in one of my page, and need to "conect" to my email.
Know a friend that he can make them so easy, but he is so hard to find, so I decide to learn how to do it.
Now, learning PHP, maybe will be way to much for me to learn, so I want to ask you, what PHP Script form are the most easy, better, to use.
What --if any-- do you use?
Thanks a lot.
Daniel Ulysses
Hola
Mmm...is getting interesting...
#1 question; Yes, Godaddy support php
#2 question; I watch a video about how to make one of those pages (php script) and make it how they said on the video. But...it doesn't work.
So, I did something wrong.
Here is the link www.imagenpr.com
if you go there, go to "contact us" link and you will see the form
Even with the php script that I made for it, still doesn't work
I'm stuck...been stuck for days
...need help...
Thanks
Similar Messages
-
Flex return value form php script
if I have a php webservice function like this
public function loginCheck($myusername, $mypassword) {
return $rec_count;
and and Declartion like this
<accountloginservice:AccountloginService id="accountloginService"
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
showBusyCursor="true"
<s:CallResponder id="loginCheckResult" />
and a button
<s:Button id="loginButton" label="Log In" click="loginButton_clickHandler(event)"/>
and a function trigger by a button like this
protected function loginButton_clickHandler(event:MouseEvent):void {
loginCheckResult.token = accountloginService.loginCheck(usernameLogin.text,passworkLogin.text) ;
var check:int = parseInt(loginCheckResult.lastResult);
if (check == 1){
why the check variable always is NULL, and how to get the value of the php script???Please post your code for your dataGrid and your PHP or a
sample of the returned XML. Without code, it is hard to say where
the problem is, but it seems like the issue is in your
[httpService].lastResult.[blah].[blah] syntax. It helps to set a
result event for PHP calls that you then bind to your dataGrid
rather than using the lastResult method which is hard to debug:
private function phpResult(evt:ResultEvent):void {
myDataGrid.dataProvider = evt.result;
But post your code and I'm sure we can figure out the
problem.
Vygo -
Send PDF form to e-mail as attachment with a PHP script on the server
Hi,
For several days I've been searching though the internet looking for a solution, a quite simple one in my opinion, but I got a little desperate not getting any result I want.
Okay. The Situation.
I have a PDF form to order sandwiches and drinks.
The PDF has serveral area's and columns where customers fill in the amount of the products they would like to order.
At a position of a field, the kitchen can almost blindly see what products a customer ordered.
Therefore, when someone fills in the form, I want to send the filled PDF by e-mail to the kitchen's e-mail adress. And important: the PDF in the kitchen's mailbox should be completely identical to the form the customer filled in.
So, I have an Order button in my form. I set the action as 'Submit a form'.
In the settings under 'Enter a URL for this link' I used just some PHP mailer script I also use on my website contact form.
IF I check 'HTML' under 'Export Format' the PHP mailer works fine. I receive an HTML e-mail listed the ordered products.
BUT
I do want the original filled PDF in my mailbox instead of an HTML e-mail.
So, for 'Export Format' I checked 'PDF The Complete Document'.
But then my PHP mailer script doesn't work anymore.
It gives errors like 'no valid e-mail adres' , etcetera etcetera.
Who has a solution?
Who has a working standard PHP script for me what just sends the kitchen an empty mail with the original PDF as attachment?!
There is no need to use any database or other more complex functionality. Just mail the filled PDF.You can submit whole PDF format as long as you enable usage rights on the PDF.
Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
As for the PHP Script; it depends on your PHP web server capabilities.
The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
Just attach the submission to an email and send.
If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
For more information and online examples:
http://www.pdfemail.net/examples/ -
Connecting my Email form to the PHP script to send to my email question
How do I connect my form that a customer fill out to my php script? I have my php script named contactformprocess.php.
anybody help?
-
Can you create a form not using a php script?
I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script. Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it. Is there another way to have a functioning contact form not using a php script?
Yes and no.
You could use a mailto link for your form action instead of a PHP script.
There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative. -
Hi all
would someone beable to help?
I have been using a free php form data script on my website but I am finding that when people fill in the form that not all the form submissions are getting through and I am not sure if it is the php form script
Would any one be to direct me to a good free php data script that is simple to use
many thanks for your help!hi there
many thanks for your help!
ok, am little new to this, so do you mean in my contact.php script I have?
not sure what I would be looking for?
I tried to attach to this post but copuld so zipped it for download here; http://www.thevineproject.org.uk/contact.zip
thanks for your help -
Hi. I got a program to write a php form processing script. My submit form is for photo submission to my domain email. I published to site and did a test to see if it works i got this error:
Warning: require_once(F:\Domains\mydomain\mydomain.com\wwwroot/includes/Upload_Photos-lib.php): failed to open stream: No such file or directory in F:\Domains\mydomain\mydomain.com\wwwroot\Upload_Photos.php on line 24 Fatal error: require_once(): Failed opening required 'F:\Domains\mydomain\mydomain.com\wwwroot/includes/Upload_Photos-lib.php' (include_path='.;C:\php\pear') in F:\Domains\mydomain\mydomain.com\wwwroot\Upload_Photos.php on line 24
What does this mean? How can i solve this so that i can process my form?See if the below form helps: You need to create a folder on your server named - upload - this is where any files uploaded will be stored (make sure the folder is writable. Also change the email address where the information that someone who has uploaded a file will go to. Look for the following in the code: $to ="XXXXXXXXXXXX.com";
<!DOCTYPE html>
<head>
<meta charset="UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#wrapper {
width: 400px;
margin: 0 auto;
</style>
</head>
<body>
<div id="wrapper">
<?php if(isset($_POST['submit'])) {
$name = trim($_POST['name']);
if(empty($name)) {
$error['name'] = "Please provide your name";
$location = trim($_POST['location']);
if(empty($location)) {
$error['location'] = "Please provide your location";
$email = trim($_POST['email']);
if(empty($email)) {
$error['email'] = "Please provide your email";
$category_description = trim($_POST['category_description']);
if(empty($category_description)) {
$error['category_description'] = "Please provide the category or description";
$terms_conditions = trim($_POST['terms_conditions']);
if(empty($terms_conditions)) {
$error['terms_conditions'] = "Please accept the terms & conditions";
$allowedExts = array(
"doc",
"docx",
"rtf",
"txt",
"pdf",
"jpeg",
"jpg",
$allowedMimeTypes = array(
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/rtf',
'application/x-rtf',
'text/richtext',
'text/rtf',
'application/plain',
'application/pdf',
'image/gif',
'image/jpeg',
$extension = end(explode(".", $_FILES["file"]["name"]));
if (empty($_FILES["file"]["name"])) {
$selectFile = 'Please select a file to upload';
elseif ( ! ( in_array($extension, $allowedExts ) ) ) {
$fileTypeNotAllowed = 'File type not allowed';
elseif ($_FILES["file"]["size"] > 2097152) {
$fileTooLarge = 'Please provide a smaller file';
elseif (file_exists("upload/" . $_FILES["file"]["name"])) {
$fileExists = $_FILES["file"]["name"] . " already exists, Please change the file name ";
elseif (in_array( $_FILES["file"]["type"], $allowedMimeTypes ) )
if(!empty($_POST['terms_conditions'])) {
move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);
$fileName = $_FILES["file"]["name"];
$fileUploadSuccessful = 'File uploaded successfully';
$to = "XXXXXXXXXXXXX.com";
$subject = "Upload to website";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$message = "Name: $name\n\n";
$message .= "Location: $location\n\n";
$message .= "Email Address: $email\n\n";
$message .= "Category/Description: $category_description\n\n";
$message .= "File: $fileName\n\n";
mail($to, $subject, $message, $headers);
$sent = "Mail was sent successfully";
?>
<h1>Form</h1>
<?php
foreach ($error as $value) {
echo "<p>".$value."</p>";
if(isset($formFieldError)) {
echo "<p>".$formFieldError."</p>";
if(isset($selectFile)) {
echo "<p>".$selectFile."</p>";
if(isset($fileTypeNotAllowed)) {
echo "<p>".$fileTypeNotAllowed."</p>";
if(isset($fileTooLarge)) {
echo "<p>".$fileTooLarge."</p>";
if(isset($fileExists)) {
echo "<p>".$fileExists."</p>";
if(isset($fileUploadSuccessful)) {
echo "<p>".$fileUploadSuccessful."</p>";
?>
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<p>
<label for="name">Name<br>
<input type="text" name="name" id="name" value="<?php if(isset($name)) {echo $name; } ?>"/>
</label>
</p>
<p>
<label for="location">Location<br>
<input type="text" name="location" id="location" value="<?php if(isset($location)) {echo $location; } ?>"/>
</label>
</p>
<p>
<label for="email">Email<br>
<input type="text" name="email" id="email" value="<?php if(isset($email)) {echo $email; } ?>" />
</label>
</p>
<p>
<label for="category_description">Category and Description<br>
<input type="text" name="category_description" id="category_description" value="<?php if(isset($category_description)) {echo $category_description; } ?>" />
</label>
</p>
<p>
<label for="file">File Attachment:<br>
<input type="file" name="file" id="file" />
</label>
</p>
<p>
<label for="terms_conditions">Terms & Conditions:
<input name="terms_conditions" type="checkbox" value="accept" <?php if(isset($_POST['terms_conditions'])) {echo "checked"; } ?>> (Please check)
</label>
</p>
<input type="submit" name="submit" value="Submit" />
</form>
</div>
</body>
</html> -
What is a good resource for pre-made PHP Form Mailer Scripts.
This is for use with a website hosted on GoDaddy.
My client has a few requirements that the GoDaddy script does
not offer (and the script I chose from GoDaddy is uneditable). I
know nothing about scripting but thought I could use a pre-made
script and modify it...is that crazy thinking on my part?
Here are the special requests from my client:
- They'd like to see the time the form was submitted in EST
(the GoDaddy script puts the time in military time in another time
zone in the subject line). Can this appear in the body of the email
as well as the subject line?
- They'd like the form to be sent to the person submitting it
as well as to their company
- They would like to be able to REPLY TO the email they
receive with the form submission and have it be addressed to the
person submitting the form. The current script has the email
addressed to themselves (the company) if they click REPLY TO, so
they are replying to themselves
- Although this has nothing to do with the Form Mailer script
as far as I can guess, they asked that the person filling out the
form be able to print it prior to submitting (in my opinion,
though, if i can have a copy of the submission sent to the
submitter, there's no reason for this). But if anyone knows how to
do this, please let me know.
- Finally, the client wants to know if each submission can
have a unique tracking number assigned to it.
Thank you all. Any feedback is appreciated.
RichardHi,
I can without any doubt recommend Forms 2 Go:
http://www.bebosoft.com/products/formstogo/index.php
Very easy to use and even someone like me who don't know a
lot of
programming, use it extensively.
Deon
"RichyZee" <[email protected]> wrote in
news:gcvkac$fcp$[email protected]:
> What is a good resource for pre-made PHP Form Mailer
Scripts. This is
> for use with a website hosted on GoDaddy.
>
> My client has a few requirements that the GoDaddy script
does not
> offer (and
> the script I chose from GoDaddy is uneditable). I know
nothing about
> scripting but thought I could use a pre-made script and
modify it...is
> that crazy thinking on my part?
>
> Here are the special requests from my client:
>
> - They'd like to see the time the form was submitted in
EST (the
> GoDaddy
> script puts the time in military time in another time
zone in the
> subject line). Can this appear in the body of the email
as well as the
> subject line?
>
> - They'd like the form to be sent to the person
submitting it as well
> as to
> their company
>
> - They would like to be able to REPLY TO the email they
receive with
> the form
> submission and have it be addressed to the person
submitting the form.
> The current script has the email addressed to themselves
(the company)
> if they click REPLY TO, so they are replying to
themselves
>
> - Although this has nothing to do with the Form Mailer
script as far
> as I can
> guess, they asked that the person filling out the form
be able to
> print it prior to submitting (in my opinion, though, if
i can have a
> copy of the submission sent to the submitter, there's no
reason for
> this). But if anyone knows how to do this, please let me
know.
>
> - Finally, the client wants to know if each submission
can have a
> unique
> tracking number assigned to it.
>
> Thank you all. Any feedback is appreciated.
>
> Richard
>
> -
HTTP submit pdf form to PHP script
I have a simple test html form at http://www.radiosport.ca/test/test.html
It use the POST method to send a name to a php script that prints the input data in the $_POST array and from the raw input dataHi,
Try with a ordinary button and make it a submit button. -
What data to return when submitting form to a php script?
Been trying to figure this out for few days now. Been googling it up and found nothing.
I made a form with livecycle designer, put a http submit button to post data to my php script and when I open it up on acrobat reader and try to submit it, I get an error about content-type not being correct etc.
What kind of content-type should I be returning then? text/plain, text/html and application/pdf with 0 lenght content doesn't seem to cut it. Can I disable whole return-check as I really dont have anything to return? Or can I somehow send an "success/failure" pop-up or something?Thank you George,
I added the line: header('x', TRUE, 204); to my PHP script per your suggestion and found that I get an error thrown "invalid server response" when using acrobat reader or acrobat pro 9. No new window is loaded and the pdf user's experience is not changed (except for the error message).
Without the added line, I get the error "no input file page data" thrown. Since I'm not returning anything to the browser that is expected but not wanted.
In either case, the data fields are captured and saved by my PHP script. It seems that acrobat requires a response from the server otherwise it is not happy. I can't see a way that I can turn off error messages to avoid this. -
Problems with php script in the contact form
Hello, I am from the Czech Republic and I am not a coder. I have 2 problems with my php sript. I am using a simple php script from Paul Trani, see below.
Firstly the email adress - when someone inserts an email adress in this form [email protected] it is OK, but when someone writes an address for example [email protected] (this type of adress is very common in our country) the answer is "That is not a valid email address. Please return to the previous page and try again." I think the problem is the dot before the @.
Secondly diacritical marks - Since I am from the Czech Republic we use diacritical marks (for example š,č,ř,ž,á,í,é,ě) so instead of this letters a get ? or Å™ or Å¡ to my email.
I really do not know how to fix these problems.
Thank you for any help. Sorry for my English. Peter
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
<title>Email Form</title>
</head>
<body>
<?php
$name=addslashes($_POST['name']);
$email=addslashes($_POST['email']);
$comments=addslashes($_POST['message']);
// you can specify which email you want your contact form to be emailed to here
$toemail = "[email protected]";
$subject = "From EcoStyleStudio.com";
$headers = "MIME-Version: 1.0\n"
."From: \"".$name."\" <".$email.">\n"
."Content-type: text/html; charset=iso-8859-1\n";
$body = "Name: ".$name."<br>\n"
."Email: ".$email."<br>\n"
."Comments:<br>\n"
.$comments;
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
echo "That is not a valid email address. Please return to the"
." previous page and try again.";
exit;
mail($toemail, $subject, $body, $headers);
echo "Thanks for submitting your comments";
?>
</body>
</html>ereg() has been deprecated, it is recommended that you dont use it.
You want to look at this
http://www.php.net/manual/en/function.preg-match.php
Within this page I found this:
If you need to check for .com.br and .com.au and .uk and all the other crazy domain endings i found the following expression works well if you want to validate an email address. Its quite generous in what it will allow
<?php
$email_address = "phil.taylor@a_domain.tv";
if (preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email_address)) {
return "E-mail address";
?> -
Does Dreamweaver generate a PHP script to process forms
I am trying to get a basic form to proess using a downloaded
php script from www.thesitewizard.com. I'm getting this error
message: " . $headersep . "Reply-To: \"$name\" <$email>" .
$headersep . "X-Mailer: chfeedback.php 2.07" ); header( "Location:
$thankyouurl" ); exit ; ?>
www.thesitewizard.com says this error is because the
webserver does not support php but we have our own webserver and
have done a test and it is working correctly.
Does Dreamweaver 8 generate the processing php script that
I'm unaware of? If not, can you recommend a simple processing
script to work on a Windows server that uses php?
Thanks for your help!HI, there you don`t nead a processing script, there may be 2
problems:
for first you must began the php script with : <?php
for second your file must has a .php extension,
Titti
textures -
Hi,
Can anyone point me in the right direction with this problem?
I am using Dreamweaver CS3. Is there a php script I can use
to have the data that a user inputs into a form extracted and put
on a PDF form that pops up when the user clicks a button so the
user can then print and fax the completed form?
I would really appreciate any help.
Thanks,Why go to a PDF? Why not just print from a webpage?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Captain825" <[email protected]> wrote in
message
news:g707ol$3b8$[email protected]..
> Hi,
>
> Can anyone point me in the right direction with this
problem?
>
> I am using Dreamweaver CS3. Is there a php script I can
use to have the
> data
> that a user inputs into a form extracted and put on a
PDF form that pops
> up
> when the user clicks a button so the user can then print
and fax the
> completed
> form?
>
> I would really appreciate any help.
>
> Thanks,
> -
Create HTML Contact Form with PHP script
Hi Everyone
I have designed a contact form in HTML with PHP script but it doesn't seem to be working. The PHP echo message doesn't appear after I submit the form and the e-mail message is not delivered. The url address is http://www.dreamaustraliastudytours.com.au/Test/ContactUs.html. Any thoughts would be greatly apprecipated
Thank you in advance
PaulHi Ben and Murray
Thank you for your input on the php script. You nailed the problem on the head. I have up dated the script and provided it below. I have one more question.
After the end user submits the form I would like them to be directed to another html file - for example successful.html. Would the code be
$insertGoTo = "successful.html";
delete 'Thank you for contacting us. We will be in touch with you very soon.'?
Once again thank you for your advice
Regards
Paul
<?php
if(isset($_POST['email'])) {
$email_to = "[email protected]";
$email_subject = "New Inquiry";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['telephone']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
$first_name = $_POST['first_name']; // required
$last_name = $_POST['last_name']; // required
$email_from = $_POST['email']; // required
$telephone = $_POST['telephone']; // not required
$comments = $_POST['comments']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$email_from)) {
$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$first_name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
if(!preg_match($string_exp,$last_name)) {
$error_message .= 'The Last Name you entered does not appear to be valid.<br />';
if(strlen($comments) < 2) {
$error_message .= 'The Comments you entered do not appear to be valid.<br />';
if(strlen($error_message) > 0) {
died($error_message);
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($last_name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Telephone: ".clean_string($telephone)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thank you for contacting us. We will be in touch with you very soon.
<?php
?> -
Wisdom of keeping PHP scripts embedded when submitting forms
I was wondering if it would be more secure if the php scripts I'm using to insert user names and contact info into my database would be more secure if the code was moved to a new page called insrtRecord.php and the form action were changed from action="<?php echo $editFormAction; ?>" to action="/Scripts/insrtRecord.php"
The page was constructed entirely with Dreamweavers built in behaviors so all the code is right there in the contact page for anyone to look at.
I'd then password protect the Scripts directory that contained the insrtRecord.php file to keep it from prying eyes.
Thanks for your advice.>He took a look at my site, checked the code, and I was sure that I saw some PHP tags pop up.
Rick, if you did see a tag then it must have been due to a misconfigured script. Any valid php will be parsed on the server and not sent to the client.
>My Connections folder with the database un and pw is in a protected directory
>and there's never a call to put in a password when a page connects to the MySql database.
>This leads me to believe that I can protect all my PHP scripts.
But connection scripts are referenced using includes which is different than what you originally suggested. I'm not saying it won't work, I really don't know. But it's easy to test and if it works I don't see any harm in adding another layer of security.
Maybe you are looking for
-
I have full internet connection, but it says I'm offline?
I was just listening to my regular playlist and then I tried to discontect Facebook. Suddenly, Spotify changed into Offline-mode. Do I need to change back or something? Why does it say "Offline" when I have full internet connection???? I've tried to
-
DBMS_CRYPTO Missing?
The SYS.DBMS_CRYPTO package appears to be missing from this beta (Linux). Is it going to be included in the next beta/release? (http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_crypto.htm)
-
Adobe Reader Add-in Crashing IE 9 CRM Dynamics 2013
All, So basically we are upgrading to CRM 2013 for Microsoft Dynamics. Some users who have IE 9, company default, when they try to get to the CRM dynamics server in IE 9, it crashes. Microsoft determined that the Adobe Reader Add - In was causing it
-
Re: Bluetooth Related Issues with Car kits regarding the Palm Pre Post 1.2.1
Make/Model: Nissan Maxima Year: 2007 Carkit Model info (Manufacturer, firmware version, etc): OEM with Nav Details of problem: (e.g. pairing drops, static on the line, buttons mapped incorrectly, etc) Since updating to webOS 1.3.5, the connect an
-
I'm having a problem with CFImage where it seems to be locking the image file it is using, making it unable to be deleted (even in windows file explorer). Here is the scenario: I upload an image file using cffile action=upload I read the file in usin