Forwarding Form (spreading the word)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hshigs
Forum Newbie
Posts: 11
Joined: Tue May 24, 2005 9:38 am

Forwarding Form (spreading the word)

Post by hshigs »

First off I apologoze if there are forums that contain the answer to the question that I am about to ask. I am unsure of the terms and not sure where and what to look for. So direction would be greatly appreciated. Also I don't consider myself a PHP coder and need basic instructions.

I am designing a form in flash that have the fields "to", "from", and "message". In flash the variable names of each of those are labeled "to", "from" and "messages". I am trying to figure out the proper coding for the PHP file(as well as the FLASH file if you also have that knowledge).

My goal is to get the visitors to forward the URL of the website I am building to as many people that they think might be interested - friends, family, or co-workers. So the visitor would enter the desination email address in the "To:" field, enter their email address in the "From:" field then type a message and send it. I want whoever receives the email address also to have a small section that has the URL and snippet about the site that I am trying to get people to visit. I do not want to be the end reciever of the email. I want whatever email address that is inserted by the visitor to be used as the desination email address.

Does anybody have an example of this or code that I can plug and play? Any help, suggestions and ideas would be helpful! thank you so much for any of your time spent on answering this submission. Again, I am new to PHP so please go easy on me. Thanks again!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

client-side flash is.

need to submit values to the server for php you will.

easiest it probably is to populate form vars from flash and submit the form.

then send the mail using mail() you can.
hshigs
Forum Newbie
Posts: 11
Joined: Tue May 24, 2005 9:38 am

The force is weak with this one!

Post by hshigs »

Thanks for the speedy reply! Although I do use Flash I am unsure of how exactly to do that. If possible and if you have the knowledge what would that look like on the Flash end. Sorry I am basic and making it way harder than it ought to be!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

know a lot of flash actionscript I do not.

something like this in the past I have done.

Code: Select all

myVar = &quote;bob&quote;;
myLoadVars = new LoadVars;
myLoadVars.load(&quote;mailer.php&quote;, myLoadVars, POST);
// and on php side
$bob = $_POSTї'myVar'];
also look into fscommand() you should, can call JS functions directly from the page it can.
Post Reply