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...
Re: Will an email form in flash work via PHP on my site?
07-02-2008 10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
My flash site, well the framework for it as there's no work samples up yet, is at: www.bertrude.plus.com/index2.html
The virtually unaltered form by Adobe is here: www.bertrude.plus.com/formtest.html
This does the same thing. It works locally but when the form is submitted it sticks. It says it sent it, but nothing comes through on email.
I was having a tinker last night and I'm wondering if it's due to the flash swf and the PHP being in different domains. I thought the crossdomain.xml would fix it but it doesn't seem to have. I started making some changes but got all confused so I'll have another look today or find a flash 8 tutorial for a form.
I'm sorry but I don't know what the @referers array is. I'll look in to that too. Cheers.
I'm still a bit baffled why I can't access my cgi space via my browser though. It keeps giving me page titled '403 Forbidden' - You don't have permission to access / on this server. Surely I should be able to view the pages this way?
EDIT:
After last nights confusion I've managed to get it working locally again and it communicates with the PHP fine. Once again when online at the url above it seems to stop after the send button has been pressed, like there's something just stopping it work with the PHP somehow. I'm pretty sure both the PHP and Flash are OK now. If I go to the PHP page via my browser (not the main one that's forbidden but to the actual PHP file) then I get sent a mail so I figure the PHP works well. It's just the communication between the two. I have also put the crossdomain.xml on both the cgi space and my webspace.
I have the actionscript below attached to my form movieciip to make sure that the data is sent but it doesn't get to this when tested online, which suggests that the swf can't send the variables to the PHP for some reason.
onClipEvent(data){
// show thank you screen
_root.nextFrame();
}
Re: Will an email form in flash work via PHP on my site?
08-02-2008 1:10 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://www.mwright.plus.com/inform.html
upload it and lets see if it works on your page all flash no php or cgi required
Re: Will an email form in flash work via PHP on my site?
09-02-2008 12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The form works a treat now. Fantastic!
Just one quick question. I doubt it's possible, but is there a way for me to suppress the confirmation page (http://homepages.plus.net/cgi-bin/form) that opens up after it's been sent. I can see why it's there and I assume it's part of the the way the form works but figured I couldn't do any harm asking.
Thanks again, the help has been er, truly helpful
I still want to get to the bottom of why the PHP and Flash wont work though. I don't want to let it beat me!
Re: Will an email form in flash work via PHP on my site?
09-02-2008 12:58 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://www.scriptarchive.com/readme/formmail.html#form_config
the one you may wont is
Field: redirect
Description: If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page.
Syntax: To choose the URL they will end up at:
<input type=hidden name="redirect" value="http://your.host.com/to/file.html">
To allow them to specify a URL they wish to travel to once the form is filled out:
<input type=text name="redirect">
so you could send the back to your page or your own message
Re: Will an email form in flash work via PHP on my site?
09-02-2008 1:22 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
But how do I actually do this configuring of the form? I just assumed it was 1 public form that all used on a 'as is' basis.
I use an Apple Mac too, if that helps.
Re: Will an email form in flash work via PHP on my site?
09-02-2008 11:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
<input type=hidden name="redirect" value="http://your.host.com/to/file.html">
to the form if this is the one you want
Re: Will an email form in flash work via PHP on my site?
10-02-2008 12:10 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://www.robdickson.co.uk/blog/2008/02/01/creating_a_contact_us_form
Re: Will an email form in flash work via PHP on my site?
10-02-2008 1:35 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: samuria you just add the line
<input type=hidden name="redirect" value="http://your.host.com/to/file.html">
to the form if this is the one you want
I'm sorry for being really dense here but I don't understand what you mean
I was under the impression that my flash file sends the form variables to a public form at http://homepages.plus.net/cgi-bin/form
If this is the case how can I possibly edit it to suit me? Won't other people also be using the above url? And how would I go about accessing and altering this script anyway if it is used by other people? Am I meant to take and adapt the form and then put in on my webspace, and link to that new adapted form in flash or am I ok to send the variables to the one above which does seem to work. Am I missing something really obvious here?
In relation to Rob's comments; if the variables are being sent to the form script from flash how would a spambot pick up my email address? Are the variables it receives stored, or does the script just take the info it gets, email back to me and then 'wipe' itself (for want of a better description).
Re: Will an email form in flash work via PHP on my site?
11-02-2008 12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
my_lv.redirect = "http://www.janwright.co.uk/new.htm";
putting your own file name. I have sent you an updated fla to show you.
The script accepts arguments so you can modify it as you like it doesnt change the script you can change the background of the report put a picture in it etc etc
Re: Will an email form in flash work via PHP on my site?
11-02-2008 7:09 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?
12-02-2008 9:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'd imagine (hope) this is easy, but can I therefore redirect visitors from my www space to my ccgi? Or should I just set up an index page on my www space to take users there on loading.
The info here (http://usertools.plus.net/tutorials/id/14) seems to pertain to registered domains but I'm unsure if this applies to the user webspace ones I already have as they're not listed in 'existing domains' in my member centre as the table is blank. Do I need to register them first, even though they are already hosted by PlusNet?
Re: Will an email form in flash work via PHP on my site?
12-02-2008 9:54 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?
13-02-2008 12:26 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm wondering if I might be better buying some hosting from somewhere that allows php scripts to reside with the main site and possibly comes with a .co.uk domain. Could anyone recommend one to me (ideally nothing too expensive, unless it's worth it as I'm starting up and don't wish to fork out too much). If it's too cheeky of me to ask this on the PN forum then please let me know and I'll edit my post. Ta.
Re: Will an email form in flash work via PHP on my site?
17-02-2008 8:55 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://www.meirhosting.net?a_aid=b92be636
I'm sorry for not replying before. I have set the option to receive notifications for replies to this topic, but I'm not getting the e-mails at the moment.
Rob
Re: Will an email form in flash work via PHP on my site?
17-02-2008 10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- 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...