Page 1 of 1

Delete "Telephone" field (Novice) HELP!

Posted: Tue Nov 03, 2009 11:01 pm
by Go2
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi everyone. Ok, I have a simple email form on my flash site (http://www.oneeightyrecords.com). I want to remove the "telephone" field from the form. On my desktop I have the swf file, the mail.php file and the main flash files for the email form. Simply deleting the "telephone" field is not working. It still says "fields are empty, even though there is no telephone field to fill out. Can someone please advise me on what to do. THANKS!

Posted: Wed Nov 04, 2009 5:48 am
by Henrie
I don't know what script you are using but i doubt it is one from PHP Junkyard.com. And this site is for support of PHP Junkyard.com scripts.
So it will be hard to help you because i don't know how your script works.

But my guess is that besides deleting the input field you also have to disable the code that checks if the fields are empty. A not available (deleted) field can not be filled and is therefore empty, so the check will report that.

Greetings,
Henrie

Posted: Wed Nov 04, 2009 1:29 pm
by Go2
Thanks Henrie! I did not realize this site had its own set of scipts. Thanks for your advice though. One last question, would I find the code in the mail.php file or would it be in the flash file? Thanks.

PS. This is the only code I can find - (mail.php)

<?
$name=$_POST['t1_2'];
$mail=$_POST['t2_2'];
$phone=$_POST['t3_2'];
$comm=$_POST['t4_2'];

$ToEmail = "rick@oneeightyrecords.com";
$ToSubject = "Message from your site";

$EmailBody = "Full Name: $name\n
E-mail address: $mail\n
Telephone:$phone\n
Your message: $comm\n";

$Message = $EmailBody;


$headers .= "Content-type: text; charset=iso-8859-1\r\n";
$headers .= "From:".$name." / ".$email."\r\n";
?>

Posted: Wed Nov 04, 2009 1:52 pm
by Henrie
If that is all the code, it is probably in your flash file, because it is not in this code.

Greetings,
Henrie

Posted: Wed Nov 04, 2009 2:04 pm
by Go2
Cool. I will search the flash file and try and find it, Thanks.

Cheers!