Hi There,
This forum has been really helpful with all my troubles, thanks to all you helpful people out there!!
My NEXT problem!!
This is driving me a little mad now as I've made a form before, using php in an HTML website, and all worked fine.
I don't know quite what is going wrong though I'm not getting any test emails I'm sending to myself to gets my form working???
All I want is a general form which connects to a php page sending the info to my email
At first I though the problem was that all my swf files were in a folder, not the root directory where all the HTML pages are and the php page. So I put a test swf in the root thinking it might help, it didn't?
I'd really apprieciate it if someone could help me to sort this out
I just don't seem to be getting this, I even tried working through a tutorial on the kirupa website..... arggh
I loaded the php file into the root directory with all my html files.
I'm using a host company called www.simply.com which does support php files
The swf files are all in a seperate folder. I though this may have been the problem though taking the swf file out the folder and into the root didn't solve anything
FOR reference this is what I've got
a send button on the form with:
on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(33);
}
}
a reset button with:
on (release) {
name = "";
subject = "";
message = "";
email = "";
}
You might need to make a couple of changes to your php script (depending on your php settings)
it is safer to use
<?php
as the opening php tag instead of
<?
as the use of <? is often disabled.
Your script currently assumes that php is set up with the setting register_globals turned on. This was the default a while ago (up until one of the early(ish) versions of php 4) when the default was changed to off. The change was made as the previous setting causes big security problems, and most hosts should now be running PHP with register_globals turned off.
With register globals off when you send variables to the script they will not automatically be created for you (like your $name, $message etc... variables) instead you need to extract them from the $_POST array - or the $_GET array if the variables were sent using the GET method.
would check the $_POST array for a variable named name - if this was found a variable called $name would be created using the value in $_POST['name'] - otherwise $name would be set to contain an empty string.
Originally posted by iaskwhy I use WS_FTP. but you have to add php to the options.
How did you upload your php file?
I use ws_ftp pro and I simply dragged the file into the right hand window which has all the file for the site, no need to add php to any options?
Originally posted by catbert303 it is safer to use
<?php
as the opening php tag
I have added that now though I haven't got the "Golden" first test email back yet ,
to be honest I find anything code related pretty hard, I understand what it's suppose to do
I've tried quite a few different versions of the same thing, I've uploaded one that seems alot better though can't remember where I got it from and can't find a .fla file to see what goes with it.
Would either of you be able to tell me what I'd have on the flash form to work with the attached .php file
In WS_FTP, click on Option along the bottom, then check the ASCII file names in the box. PHP should be there. If not, add it. Then try uploading again.
Look at the picture.
And you need to change this to the e-mail address: