Jump to content

Recommended Posts

Hey Guys

 

I have a simple flash contact for that calls a php file. it has 5 fields....Name, Subject E-mail, Tel and Message.

 

My problem is that when i test the form and recieve my email response the subject info is duplicated in the name field and also once you submit the message online it is meant to say......."thank you, "namefield" your message has been sent but instead it says, thank you, "subject field" your message has been sent.

 

Attached is the php code file email the flash page to anyone who wants it

 

Could someone please have a look at the 2 files and help me to resolve it  :'(

 

Cheers in advance

Tom

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/176556-solved-online-contact-form/
Share on other sites

Your problem's here (lines 14-15):

 

$senderName   = stripslashes($senderName);
$senderName   = stripslashes($senderSubject);

 

You're setting $senderName to $senderSubject.

 

NB In future you'll probably get more / quicker responses if you post code within code tags.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.