| | |
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
| Thread Tools | Search this Thread |
# 5.2.10 access alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






