| | |
php contact form help needed plz
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2008
Posts: 35
Reputation:
Solved Threads: 0
Hello guys .. how r u ..
i am new to php (since we didnt get much php at university)
i am using it mainly to include the navigation menu, header, footer etc ..
i am working a on a contact form ..
people can send e-mails using a form even if it is not connected to
a datbase using something like:
instead of for example:
i tried using the first one i mentioned .. but it doesnt validate ..
does anyone know i can let it validate the form and use such a way to send e-mails
without connecting to a database?
thanks in advance
i am new to php (since we didnt get much php at university)
i am using it mainly to include the navigation menu, header, footer etc ..
i am working a on a contact form ..
people can send e-mails using a form even if it is not connected to
a datbase using something like:
PHP Syntax (Toggle Plain Text)
<form action="http://www.is.nl/cgi-bin/mailto.exe" method="post">
instead of for example:
PHP Syntax (Toggle Plain Text)
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
i tried using the first one i mentioned .. but it doesnt validate ..
does anyone know i can let it validate the form and use such a way to send e-mails
without connecting to a database?
thanks in advance
•
•
Join Date: Dec 2008
Posts: 19
Reputation:
Solved Threads: 1
•
•
•
•
Hello guys .. how r u ..
i am new to php (since we didnt get much php at university)
i am using it mainly to include the navigation menu, header, footer etc ..
i am working a on a contact form ..
people can send e-mails using a form even if it is not connected to
a datbase using something like:
PHP Syntax (Toggle Plain Text)
<form action="http://www.is.nl/cgi-bin/mailto.exe" method="post">
instead of for example:
PHP Syntax (Toggle Plain Text)
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
i tried using the first one i mentioned .. but it doesnt validate ..
does anyone know i can let it validate the form and use such a way to send e-mails
without connecting to a database?
thanks in advance
You have to validate your whole form by passing values to javascript while submitting your form and then you may pass the values to any other php program thru action. If you want to pass values to another php then use session variables and use header() function instead of using action="" in form.
PHP Syntax (Toggle Plain Text)
<? session_start(); if(isset($_POST['Submit'])) { $_SESSION['name']=$_POST['Name']; .................... ................... ................ header('Location: youphp.php'); } ?> <html> <head> function ValidateForm() { //validate your form return true; } </head> <body> <form name="form1" method="post" action="" onSubmit="return ValidateForm();"> //get all your data like Name,Email etc <input type="submit" name="Submit" value="Submit"> </form> </body> </html>
![]() |
Other Threads in the PHP Forum
- Previous Thread: Setting mutiple vars in one var
- Next Thread: Hi I need to data search by php
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm mod_rewrite multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validation validator variable video web xml youtube





