Will an email form in flash work via PHP on my site?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Will an email form in flash work via PHP on my sit...
Will an email form in flash work via PHP on my site?
30-01-2008 11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm in the process of creating a flash site for myself to put up on the space that comes with my plus net account.
I want to add an email form to my flash site so people can contact me without having to go to their email client but I'd like to confirm if it's possible with the plus net servers as I'm under the impression that some servers don't allow it via PHP.
I've tried testing the php by putting a small php file online but when I go the file in Firefox it just wants to download the php file rather than run the email script to send the test mail. Does this mean it's not possible or I have made some mistake?
The script was:
<?
mail("yourname@yourdomain","test","Ok, it works");
?>
I know nothing about PHP I'm afraid and I'm just following some tutorials to try and get the form working.
Ta
Re: Will an email form in flash work via PHP on my site?
30-01-2008 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
See help & support for ccgi
Re: Will an email form in flash work via PHP on my site?
30-01-2008 11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Without wanting to sound too much of a rank amateur, but what is CCGI?
Scrub that. I've found the help files and will actually bother reading them

Cheers
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The main Homepages server provides a method of serving up 'static' content. These are generally basic HTML pages or images.
The CCGI server handles serving up 'active' content, such as PHP.
They are split for historical security and performance reasons.
To activate your CGI account, visit the Website Settings part of the portal, and go to the CGI option, then "Activate CGI"
You can then access your CGI space by ftping to ccgi.plus.net
Anything you upload will be available at: ccgi.<username>.plus.com/
B.
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've gone to my webite settings but all I have is a "My Webspace" button and no reference to ccgi. No activation button or anything. Has it ran away from me all scared because I don't know what I'm doing

Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:12 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
IIRC, some of the dial-up accounts didn't come with CGI access but I would have expected any of the ADSL accounts to provide CGI?
B.
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Should I raise a ticket?
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Raise a ticket requesting the CGI component is added to your account, and include a link to this forum thread. Hopefully that should get fixed fairly soon (unless one of the PN bods on the forums pick it up first :))
B.
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You can have a look at what you get on the BB Plus product here:-
Linky Linky
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

Thanks for clarifying Chris.
The thing is, I don't want a BBYW product as I don't like the peak usage times. I like my BB+.
If I ask nicely, is there a way of getting a cgi activation, or am I wasting my time? Do you think raising a ticket might help?
I only need to add a php file with this on:
<?php
$sendTo = "myemailaddress@whatever.co.uk";
$subject = "Website response";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["comments"];
mail($sendTo, $subject, $message, $headers);
?>
I'd be grateful if any Flash wizards out there might be able to offer up any alternatives that don't rely on PHP (if that's possible).
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

Flash 'objects' are run in the context of the local machine, so sending a mail with them is almost certainly going to require using the local mailing software.
Lets see if Chris can wave some sort of magic wandage over the CGI server for you

B.
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have no intention of using SQL. I just want to create the mail back form on my flash site.
Any help is appreciated. Ta.
EDIT:
Just gone to my Member Centre and I have a new shiny CGI Button. Yay! Thanks so much

Now I've just got to see if I can get the flash action to access this new space.
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Will an email form in flash work via PHP on my site?
30-01-2008 12:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for your help everyone.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Will an email form in flash work via PHP on my sit...