Hi guys! I hope so it gone be help to finish yours forms! Wished to add simply George (by the way with its help on other page!!:)) ---that it had under MAIL SCRIPT!!! Thanks George ---I apologize for that, that I could not find it ---but it was not simple to find it!! Next time I shall be closer!!! Mike
Important Note:
Although the above multimedia tutorial mentions the use of the "mailto:" as form action,
WE DO NOT RECOMMEND this type of processing of the form info.
This is because this method, depending on your email client (Outlook Express or other) settings,
MAY FAIL to process the info and send the email, and will also give Privacy warning messages to your visitor.
We recommend the use of a PHP script instead.
September 30 2006 update: An advanced script, with many additional features and built in security measures, can be found at the Advanced BlueVoda Form Processor thread. You may find it interesting! The below is an example of PHP script you may use for processing your forms data. Please follow the instructions that follow to the letter. Please note that this is only an example script, that can be customized to better suit your needs.
Instructions:
1) Lets say you create a form using BlueVoda and you name the page that the form is on "contact",
You can name the page anything you like but for this example lets say you name it "contact".
The full URL of the link of your form page should be the below....www.YourDomainName.com/contact.html The form page may have a look like the following image:
Change the form properties (in BlueVoda) to:
Action: action.php
Method: POST
Encoding Type: multipart / form data.
To accomplish this, double click on your form, and the following dialog box will appear:
Just type in the above, as shown in the image.
Save and publish. 2) Now let’s create a “ Thank you “ page, where the visitors will be redirected after the form submission. We shall also put in this page, the necessary code that will process the info sent by the form and will send the email with the info in your email address. Let’s start creating the page in BlueVoda. Add also your menubar, so the visitors can go on from there to navigate your site.. It will look like the following image: Now, click on Page Properties, and select the extension php for your page when published. Now, copy the following code (just highlight here, righ click, and choose "Copy" from the menu that will open up):
Quote:
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "order@example.com";
$mailsubj = "Enter Your Subject Here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
Open the Page html.
You do this, by rig***licking anywhere in a blank space of your “action” page, and selecting “Page HTML”
Click on “Inside Body Tag”, as shown in the following image:
and paste the code in the window.
While you have this window open, change the part in blue of the above code with your actual email address, and the actual Email Subject.
Save your page as “action”. When it will be published, it will automatically be published as “action.php”.
3) Now publish your “action” page as you would do for any normal page. Only take care to publish it in the same directory where you have published your “contact” page.
Please note that the script will only work after you have published.
Congratulations! You are done! Test your form. You should receive the email with your form info in it, in your email inbox.
Troubleshooting
Make sure that all the fields in the “contact” page have their own names. BlueVoda by default assigns the fields names like T1, S1 etc. So if more than one fields have the same name, f.e. T1, you will only receive one value.
The above script is a generic one, which means that it will work with as few or as many fields you have in your form.
The email field MUST be called “email”, otherwise the script is unable to recognize the visitor’s email as such.
In order to receive clearly titled values, we suggest that you name your fields with a clear name, f.e. “First_name”, Last_name”, “comments” etc. Use underscores to separate the words, the same way you do when naming BlueVoda pages. However, you can use uppercase letters.
Do not insert any other html or php code in the “action” page. It could cause conflicts resulting in errors.
__________________
VodaHost
Your Website People!
1-302-
283-3777 North America / International
(0044) 020 8816 8319 / UK
Military Ranking System Explained
Click Here to take the royal VodaHost Tour
Click Here for the VodaHost Help Centre & Tutorials Got a question? - Try a forum search! Available at the top of every page!