Sends The Page To The Supervisor Via Email For His Authentication And Processing.
I've got a employee database that enables a 'narator' to add,delete, or edit very sensitive records. but before it gets saved to the database it needs to be verified by the 'supervisor'. Is it possible for me to make the buttons on the employee management system that serves as a dummy and just sends the page to the supervisor via email for his authentication and processing.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Apache Sends Blank Email? - Php Email Form
I'm having some trouble with a php contact form on my site. It is based around a basic contact.php form which POSTS and redirects to a sendemail.php form with the variables. As a result, the webmaster receives 2 emails: 1 correct submission and 1 blank email from "Apache". Code:
View Replies !
View Related
Mail Problem - Sends The Email From URL
I'm avinga problem with the mail function. I need specific reply to and from addresses which are in the format of URL I set up the mail function mail($email, $subject, $message, "From: URL Reply-To: URL"); The problem is that it ignores the whatever and sends the email from URL. Any ideas how I could fix this or why it's doing it? Thanks a ton!
View Replies !
View Related
Email Form Sends Before Submit
I have created a email form that gathers info from my user(student) and can send the completed email to an instructor's email. The problem I am having is it sends the email as soon as the page loads. I have tried adding an "if submit" clause, but everything goes haywire at that point. Code:
View Replies !
View Related
Sends Emails With An Attachment To An Email Address
I've got a script here that sends emails with an attachment to an email address that is retrieved from an html form. The email sending code is include below. The problem: when sending the email to certain email servers, the attachment section of the email gets removed and I end up with an attachment of zero kb. Other servers do accept the attachment as expected. Code:
View Replies !
View Related
Sends The Email Successfully Even If There Is Illegal Charactors?
The remaining 2 problems are even though it validates the email address with preg_match and echos an error, it still sends the mail and it checks for invalid charactors but (you guessed it) it still send the mail. The script works fine, it checks if email, name and subject are filled out and if not writes an advice on the page. It also checks for illegal charactors and correctly formed email address and writes the error message correctly. The problem is that it sends the email successfully even if there is illegal charactors and/or malformed email address, in other words it knows about the problems but doesn't prevent the email being sent. Code:
View Replies !
View Related
Email Sends With Mail() Function But Arrives Blank
The TextInputForm.html form and WorkMail.php script below work fine. But there is one exception. If the "maxlength" variables for the text input boxes in the HTML form below are increased any more than the current settings the e-mail won't work right. What will happen is the e-mail will send but when it arrives it will be blank when viewed in the e-mail client. For example, if the "maxlength" in the "AnyConcerns" text input box below is increased to 175 or above, and if all of the text boxes on the HTML form are full of text, the e-mail will arrive blank. The "echo" statements on the WorkMail.php script below work fine. If the "maxlength" settings on the text boxes are too high (resulting in a blank e-mail) the "echo" statements will still print out all of the input in the browser. That indicates that the $Data string is processing all the way through to the SendMail() function below. I was thinking that maybe, in order to guard against persons sending spam, the ISP has set the hosting server to limit the amount of text that can be sent in any one e-mail. Does anyone know what might be the problem? PHP Code:
View Replies !
View Related
A Link In An Email That, On Click, Sends The Headerinfo To A Server
Is it posible to make a link (to a php-file on a server) in an email that, when you click on it, sends info about who the reciver of the email is? Lets say I send out an email thru an alias to a group of people and I want to give them the opportunity to sign up for an event using that link. Those that click the link are added to a post in a database (MySQL), eg. with their email adress, initials, name... whatever. I guess that it would be easy if it just takes the contest of the to-field in the emails headerinfo? If a spammer can do it, so can I :o) And... if you have an answer please assume that I know practicly nothing about php :o) I have made a few sites with php and MySQL, but nothing fancy - just simple guestbooks etc.
View Replies !
View Related
Email Authentication, How To Check If Just One Email
I've a few functions to check if an email is valid. What I'm wondering is how to make sure there are only one email for each field? What we are building is a contest in which a participant can send an invitation to up to 5 friends (5 email fields), sending an invitation would give one more chance of winning the prize. The fields are 40 characters, but how do I prevent someone from entering 2 email in the same field provided that the 2 are less then 40 characters total? If the 2 email are complete it's not so much of a problem, the participant would only receive one extra chance not two the mail function would send to both email no problem (provided the user superated them by either a space of semi-colon). But if the second email is incomplete and the user doesn't notice it then the mail admin would receive an error stating that the second email is not good... Anyway to prevent all that I really need to make sure of 2 things. 1) that there's only one email listed in the box and 2) that the email is valid.
View Replies !
View Related
"send Email" Sends Symbols Instead Of Accent Marks
I've been using a simple, plain text, "Send Email" script to let me know when a new member has registered on the site. Recently people with accent marks in their names have been registering, but in place of the accent marks I see unrecognizable symbols. I did some googling and found out that I should add something like: "Content-Type: text/plain;charset=utf-8" to the header. Code:
View Replies !
View Related
Form Processing Email Problem
I have a form that I made with phpFormGenerator and the processor.php file makes the form have this in the "From" field when it is sent to my email: Nobody [nobody@burgos.ourhostingservers.com] I'm not that good with PHP but can see from below that the email above is a default server email address for the hosting account I have and it is being retrieved from the PHP line below: $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); How can I make the "From" field simple be an email address that I specify?
View Replies !
View Related
Php And Email Authentication
i need a framework to set up a web service with email authentication: that is, I need the user to insert his/her email, I send him/her a code via email and when the confirm email arrives, the user is confirmed: it is done in various web services, nothing new :-( But how can I do it? I have seen various CMS which get the subscription, but not the mail confirmation: I obviously need to intercept incoming mail to to check, but how is it done in php?
View Replies !
View Related
Email Processing Script, Need Help Trying To Catch =0D And =5f Encoded Characters
I have a script for processing emails, The script finds email sent to a particular alias, grabs the body text of the email and stores it into a database. Problem is that certain character like '_' sometimes get stored as =5F, and some email clients seem to add in =0D encoded characters. I store the text in an Mysql database, and depending on the message type I also set a flag to indicate whether its a plain text message, or a MIME message with HTML coding. Its alwasy the HTML messages that have the extra characters. here is the code segment I modified from php.net to break down the email structure and grab just the body text (not interested in storring any attachments). # some borrowed code to get the email contents and attachments, $MIME = FALSE; $debug = ""; $struct = imap_fetchstructure($conn, $msg); $parts = $struct->parts; $i = 0; # messages are either simple, only text, or complex with attachments. if (!$parts) { /* Simple message, only 1 piece */ $content = imap_body($conn, $msg); } else { /* Complicated message, multiple parts */ # complex message: multi-part - dump attachments (do not forward to ANK). $endwhile = false; $stack = array(); /* Stack while parsing message */ $content = ""; /* Content of message */ while (!$endwhile) { if (!$parts[$i]) { if (count($stack) > 0) { $parts = $stack[count($stack)-1]["p"]; $i = $stack[count($stack)-1]["i"] + 1; array_pop($stack); } else { $endwhile = true; } } if (!$endwhile) { /* Create message part first (example Ƈ.2.3') */ $partstring = ""; foreach ($stack as $s) { $partstring .= ($s["i"]+1) . "."; } $partstring .= ($i+1); $debug .= strtoupper($parts[$i]->subtype) . " "; # only grab the plain text message - everything else will get dumped! if (strtoupper($parts[$i]->subtype) == "PLAIN" && $MIME == FALSE) { /* Message */ $content = imap_fetchbody($conn, $msg, $partstring); } if (strtoupper($parts[$i]->subtype) == "HTML" ) { /* Message */ $content = imap_fetchbody($conn, $msg, $partstring); $MIME = TRUE; } } if ($parts[$i]->parts) { $stack[] = array("p" => $parts, "i" => $i); $parts = $parts[$i]->parts; $i = 0; } else { $i++; } } /* while */ } /* complicated message */
View Replies !
View Related
Php Scripts For Email Authentication
is there any script to authenticate an email address entered in a form field? I used the php mail() function, using the following (where my email field on the form is called "email"): $email = explode('@',$email); $mailhost = $email[1]; $mailhost=$mailhost."."; $to = myname@here.com; $subject = "this is the email subject"; /* message */ $message = 'text of the message' $headers = "From: ".$email.""; /* and now mail it */ mail($to, $subject, $message, $headers); ...............
View Replies !
View Related
Authentication Of Email Users
I want to make a user control panel for all the email users of a domain and for that purpose I want to authenticate the user email address and password with the mail server. My MTA (Mail Transfer Agent) is Exim and POP/IMAP is handled by Courier-IMAP. I found one solution of using PHP imap_open which authenticate a mailbox using username and password. would this function be the best choice for authentication or there are any other libraries or functions that I can implement for better authentication methods.
View Replies !
View Related
Authentication Process For Email Signup?
authentication process for email signup? before confirming an email address to be a valid subscriber, i need to check that the email address is indeed the one that the user typed in. currently, i was thinking about storing the random code in a text file together with the email address to be autheticated: email|code autheticate list %email%email%email how do i autheticate it - anyone can provide an example code for this ?
View Replies !
View Related
Login Page Processing
I have to use a login form in my web based project. After the username and password has been verified from the database, the system has to display the module for which the user is given access to. How do I code this aspect without using the anchor link. eg: echo "<a href='somepage.php'>Youhave been directed to the abc system</a>; " I have considered 2 options: 1).To have a select case and display the module address; 2).To get the module address from the database and direct the user to that page.
View Replies !
View Related
Page Processing Animation
I have a sendmail function which works great. It goes from details.php (where they enter their info etc) and onto sendmail.php (which compiles the info and sends the email. After sendmail.php has finished doing it's work i made it echo some HTML basically something like "thankyou, your email has been sent etc". This all works great! The problem is that while sendmail.php is sending the email it can take around 20seconds, during which time the web browser is basically just blank... I want to have some kind of simple flash animation just up there saying something like "processing" so the user doesn't get worried and try to send again or leave the page altogether... How can i make it display some other html while the sendmail script is in process?
View Replies !
View Related
Email: SMTP Authentication - PHP Warning: Mail()
I am running Apache/PHP on Windows 2000. How do we set up authentication for outgoing mail, since my yahoo server requires that? My current settings in php.ini are the following: SMTP=smtp.mail.yahoo.com smtp_port=25 sendmail_from=me@myemail.com ;sendmail_path= Call the mail() function: mail("the@ddress.com", "Test", "Message"); And finally, the error message output when it fails: [02-Mar-2003 12:01:31] PHP Warning: mail() [http://www.php.net/function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:apachehtdocsmail.php on line 11
View Replies !
View Related
Processing And Page Output Order
I have been using php for some time now and have got the hang of fairly high level processing including dynamic images from mysql output that leads me to the point of needing to better understand the processing /logic order of the php engine so i can increase the speed of my scripts. Code:
View Replies !
View Related
Processing Variables In An Included Page
I'm setting up a template based CMS where the template script looks a little like this: <html> <head><?php echo $title;?></head> <body> <?php // inserts the content into the template $page = $_GET['page']; include("$page.php"); ?> </body> </html> $title is defined in the page to be included, but it's not being echoed - is there a way to ensure that variables in the included page are processed by the template script?
View Replies !
View Related
PHP Form Processing Hangs Page Load
I am trying to write a simple PHP script to process a form.. the function seems to be working fine // subscriber is the users email in the form if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') ) thing is while this processing is taking place the page load hangs... in IE i see nothing the page background, in Firefox (even worse) I get only 1/2 the page.... I would like the whole page to load the the processign to take place, except that my PHP is 1/2 way down the page, inside the form
View Replies !
View Related
Form Processing - Output In A List On The Page
I have a MS Access database which holds my products. On my products.php page i use PHP to access the products and output them in a list on the page. As well as displaying the results i echo out a text field after each record displayed called 'code', which is for the user to enter the product code of the item they wish to buy into. Because text field will appear after every record in the database i have called it 'code' in order for me to then have some php code submit all of the fields which the user has filled out and place them in a single field within my database and have each order nuber separated by a comma. Code:
View Replies !
View Related
Display Message Page During Server Side Processing
what is the standard way to "push" an intermediary message HTML page to the user while a server side process executes? for example, in many forums such as this one, you get an HTML page containing a message, like below, that displays while the application completes its process. "processing your post please wait and you will be returned to the forum". Then after the server side process is complete, it sends up the final result of the process, in the case of a forum, returning you to the thread you started or responded to. I plan to use something similar for file upload scripts so the user will have some sense of the status of the upload continuing, then finally receiving a message that upload was successful or failed due to some error. Can this be done through one script printing out two different HTML pages each with their own HTTP header?
View Replies !
View Related
Tracking Pixel In A Processing Script, Instead Of HTML Page
I have a Web form that is filled out on my company's web site. When the submit button is pressed, the form data is posted to a PHP page that (in the background) inserts their information into a database, sends them a confirmation e-mail, etc. Once the form processing is done, the user is redirected to a Thank You Page. The thank you page has the following code in it: [code]..... This code adds the user to an opt-in list so that we can send them other products and services. THE PROBLEM: Some of our affiliates collect our user's form data on their Web site via a co-reg page, when this happens, they are posting the form contents to the form processing page on my server, but the user never sees the thank you page, so the IMG SRC code above is never displayed, and they are never added to our opt-in list. QUESTION: How would I insert the same code above in my form processing page (that processes in the background) so that the opt-in occurs on the form processing page, and NOT the thank you page?
View Replies !
View Related
PHP Form Processing With URL Parameters And Forwarding To HTML Page
I felt this query would be relevant to HTML and PHP forums. I am currently modifying a PHP IMAP script which allows the user to view their email via a web browser. I have made use of URL parameters which are passed to the webserver, and processed by the PHP code (better than javascript). No problems so far :) When I have reached a point where I no longer need these parameters, I use PHP header/location forward to reload the HTML form page. If my page was http://www.mysite.com/ foo.html and I was forwarding** to this specific URL (without any ***?myval=????&anotherVal params). When I reload the form**, I keep my URL parameters that were present*** the previous time the form was processed (they are there in the URL_REFERRER). Can someone tell me how to lose the parameters, so I just forward to foo.html. :)
View Replies !
View Related
Form Processing - Create The Page And Have The Records Inserting
I can create the page and have the records inserting, without any issue, but the problem I'm having is trying to understand the process involved. I can find lots of tutorials on how to insert records but none on the logic behind it. Can anyone point me in the direction of a tutorial. What I'm trying to understand is the how the form submits the page (to where I'm not sure) and then executes the form handling. I'm using Dreamweaver to create the insert form, if that is of any consequence.
View Replies !
View Related
Page Authentication
I have a table setup users. It has usergroupid, username, etc. I wanna get some code something small that where if usergroupid < 5 then it will redirect you to say index.php but if its > 5 it will let the page load. Any ideas ?
View Replies !
View Related
User Authentication Page
I have a basic login page which has a form that sends test name and password to process_password.php. Basically only this bit of code runs on the first page. I havent tidyied the first page up yetif(!isset($name)&&!isset($password)) Code:
View Replies !
View Related
Produce A User Authentication Page
I'm trying to produce a User authentication page so a user can log in with a user name and password. I've worked out setting up the database and adding new users to the database. So now people can log into pages using there user_id and password which is checked on the MySQL database. The problem comes when a user forgets there password and I wanted to send it to the email that they used in the registration. I'm using md5(), so the database contains a 32-character hash, it is possible to transfer this back to plain text.
View Replies !
View Related
Create An Encryped User Authentication Page
I just finished my first shopping cart complete with it's own basic CMS so my client can add, edit & remove products. Only problem is, that page isn't protected, so I need to do two things as far as I can see Create an encryped user authentication page that requires a simple username and password. And a snippet that denies access to the page unless you're logged in. From my experience, I don't think this should be much more than a page or two of code at worst, I'm intent upon writing it myself too, so I guess I'm looking for someone who can reference me to a solid PHP & MySQL tutorial for this?
View Replies !
View Related
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.
View Replies !
View Related
Form Processing - Get The Target Page To Process The Form Variables
I have a form embeded in a html page. The form comprises of 3 inputs (2 <select>, and a submit button). The action is set to a php page. What I am trying to achieve: I would like to be able to get the target page (php page) to process the form variables in 'if.. else' statements and direct the visitor to the relevant page which contains the information that has answers for their queries. Example: variable1=="small" (entered from a <select> input) Variable2=="truck" (entered from a <select> input) this info is submitted to process.php I would like 'process.php' to combine the 2 variables and send the visitor to a page called: small_trucks.htm or small_trcuks.php (either extension will do). Note that the final pages the visitor to be directed to are unique pages and need to be displayed in the form of pages and not IFrames. If you are familiar with this, would you kindly create a code for the above example..? and would you also be able to tell me where to insert that code in the php page..?
View Replies !
View Related
Send Email - Page Where You Enter An Email Address And Click Send.
I am interested in creating an "email -this" type ability for a website. I am sure most people have seen an "email -this story" type link that is standard on most news web sites. You click such a link and then it takes you to a page where you enter an email address and click send. The link for the story and the title are not editable. Does anyone know where I can find example code of how to do this with php, and any explanation of how this works.
View Replies !
View Related
HTTP Authentication .vs. Session Authentication
I am designing a PHP application (yes, I have investigated using existing applications). I cannot use HTTPS for reasons I shall not disclose. I must authenticate users against a database (MySQL) before granting them access. There are two methods I am considering: HTTP authentication, and session authentication. My webpage is spread across multiple scripts, and the user must not have to repeatedly reauthenticate him/herself. It does not matter, however, if the login session remains or is destroyed when the browser closes, although destruction is preferred. To my knowledge, PHP only supports Basic HTTP authentication. This would be easier, and if it matches session authentication in security, I would prefer to use it. Session authentication would be accomplished via a hashed password supplied in a form, sent via POST, after which the userid or another identifying piece of data would be stored in a session variable. My webserver does host other websites, and I cannot adjust its configuration. It seems to me, however, that Basic HTTP authentication sends the username and password in plaintext at the opening of every page. Is this true?
View Replies !
View Related
Sends .EXE Or .ZIP Using Mail()
I am in the process of creating a page where a user can type in his e-mail address (or their friends), and then hit 'submit' and each of the address' will recieve in their mailbox an e-mail with either a .zip or a .exe attached. (The file is less than 100k). I have a script that worked for sending .gif files as attachments, but as soon as I tried changing the file to .zip or .exe it no longer functions properly. For .EXE files it turns them into files with the extension .ZL9 PHP Code:
View Replies !
View Related
E-mail Sends
Here is what I am trying to do... 1. Search a database for people that want to receive a newsletter (works) 2. Get the e-mail address and business code (works) 3. Get the business name for the newsletter based on #2 (works) 4. Get the specials for the business for the day of the week (works) 5. Send an e-mail to each person (1) including the business name (3) and the daily specials (4) (kinda works) We will say that the business has 3 specials for the day. Everything works except for including all the specials for the day in the e-mail. All I can get it to do is display the last special, not all 3. Code:
View Replies !
View Related
Sends Anonymous Emails
I have this script that sends anonymous emails. It worked until i added the super spam mode. I'm not good with php by the way. Here is both my html file (with the form) and my php file (does the work): Code:
View Replies !
View Related
|