| | |
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 |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





