| | |
Problem using mail() as the basis for a booking system
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2008
Posts: 37
Reputation:
Solved Threads: 0
Using php mail function allows a user of a wesbite to send email without opening up ther mail client, information such as subject message reply-to email address can be included.
With this could I also add fileds to send things such as booking time date, telephone number etc?
Can this go in the header fiels or something so that I can check it in my inbox
or does this require an sql table? i dont want to use one mainly becuase i havent made one befoer, and i want any reservation to be sent straight to my inbox
clarification?
With this could I also add fileds to send things such as booking time date, telephone number etc?
Can this go in the header fiels or something so that I can check it in my inbox
or does this require an sql table? i dont want to use one mainly becuase i havent made one befoer, and i want any reservation to be sent straight to my inbox
clarification?
You can put anything you want in the email. And you wouldn't need a SQL table unless you're storing information in some way.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Nov 2008
Posts: 37
Reputation:
Solved Threads: 0
PHP
FORM
how could i include like a telepphone number to call a client back on?? i tried messing around by addid more form fields and changing lines in the php, but to no success
PHP Syntax (Toggle Plain Text)
<?php $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "contact@superdial.co.uk", $subject, $message, "From: $email" ); header( "Location: http://superdial.co.uk/sent.htm" ); ?>
FORM
PHP Syntax (Toggle Plain Text)
<form action="mail.php" method="post"> Send a message to the superdial.co.uk inbox. Please complete all fields. <br><br> Reply-to email: <input type="text" name="email" size="25"> <br><br>Subject: <select name="subject"> <option value="Accessibility">Accessibility</option> <option value="Numbers">Access Numbers</option> <option value="Advertising">Advertising</option> <option value="Credit">Calling Credit</option> <option value="Careers">Careers</option> <option value="Other">Other</option> </select> <br><br> <textarea name="message" rows="15" cols="80">Enter your message here.</textarea> <br><br> <input type="submit" value="Send"></font> </form>
how could i include like a telepphone number to call a client back on?? i tried messing around by addid more form fields and changing lines in the php, but to no success
http://lmgtfy.com/?q=php+mail+form
Really, google is your friend, use it, learn it, get to know it.
Really, google is your friend, use it, learn it, get to know it.
Last edited by ShawnCplus; Jun 3rd, 2009 at 4:53 pm.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
![]() |
Similar Threads
- Wordpress Online Booking System (PHP)
- Booking system (VB.NET)
- Bash Mail script help (Shell Scripting)
- booking system (PHP)
- Airline Reservation System (ColdFusion)
- Major XP Problem: Error Loading Operating System... (Windows NT / 2000 / XP)
- problem with e-mail server (Networking Hardware Configuration)
- Math/computerscience Log Problem- Helpppp (Computer Science)
Other Threads in the PHP Forum
- Previous Thread: Help creating a PHP driven website
- Next Thread: get combobox value
Views: 318 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






