jdn1 Posted February 5, 2007 Share Posted February 5, 2007 Hiya Noob here Have been using swishmax to compile a small rego form. Only i cant seem to get the submit button happening. I have three fields of input text i need to post to e-mail... I have been reading tutorials but they just dont seem right ? any help would be appreciated. i can put wat i have up so far on my domain ? Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/ Share on other sites More sharing options...
fenway Posted February 5, 2007 Share Posted February 5, 2007 A link to the site would be helpful, yes. Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177299 Share on other sites More sharing options...
jdn1 Posted February 5, 2007 Author Share Posted February 5, 2007 http://jdn1.8888mb.com/tourney%20reg.html thks Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177308 Share on other sites More sharing options...
fenway Posted February 5, 2007 Share Posted February 5, 2007 I see a white page... post the code snippet, and what you mean by "happening". Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177320 Share on other sites More sharing options...
jdn1 Posted February 5, 2007 Author Share Posted February 5, 2007 http://jdn1.8888mb.com/tourney.html (i renamed the url) this is a flash form you may be seeing the white box because you done have a flash player installed? Allthough it is a common thing to have..? what i mean is. i have 3 data entry boxes on the flash form a email, quake 4 alias , xfire tag. and i want for the user to click the submit button and have the variables sent to the contact.php and then forwarded to my e-mail containg the 3 details...if that makes sense :S submit button when clicked script....if i did it right? on (release) { q4_alias = q4_alias.text; Xfire = Xfire.text; email = email.text; loadVariables("contact.php",'POST'); } contact.php <?php $q4_alias = $HTTP_POST_VARS['q4_alias']; $Xfire = $HTTP_POST_VARS['Xfire']; $email = $HTTP_POST_VARS['email']; $message = stripslashes($message); $sendTo = "[email protected]"; $subject = "Registration Form"; $msg_body = "q4_alias: $q4_alias\n"; $msg_body .= "Xfire: $Xfire\n"; $msg_body .= "email: $email\n"; $header_info = "From: ".$name." <".$email.">"; mail($sendTo, $subject, $msg_body, $header_info); ?> html of the flash form <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>tourney reg</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="author" content=""> <meta name="generator" content="SWiSHmax http://www.swishzone.com"> <meta name="description" content="tourney reg"> <meta name="keywords" content="address, alias, email, quake, reset, submit, username, xfire"> <!-- text used in the movie --> <!-- address, alias, email, quake, reset, submit, username, xfire --> <!-- Created by SWiSHmax - Flash Made Easy - www.swishzone.com --> </head> <body bgcolor="#FFFFFF"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="tourney_reg" width="800" height="600" > <param name="movie" value="tourney reg.swf"> <param name="bgcolor" value="#FFFFFF"> <param name="quality" value="high"> <param name="allowscriptaccess" value="samedomain"> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="tourney_reg" width="800" height="600" src="tourney reg.swf" bgcolor="#FFFFFF" quality="high" swliveconnect="true" allowscriptaccess="samedomain" > <noembed> </noembed> </embed> </object> </center> </body> </html> Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177327 Share on other sites More sharing options...
fenway Posted February 5, 2007 Share Posted February 5, 2007 Well, yes, flash is less than ideal for functionality... anyway, though, I'm not sure I understand. if you use a form action, why doesn't the script handle this? or are you posting back to itself? Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177334 Share on other sites More sharing options...
jdn1 Posted February 6, 2007 Author Share Posted February 6, 2007 Hmm well i dont think its that rally different from a standard form? If you had a standard html form with 3 input text boxes 1. name 2. email 3 username and upon a person entering those details and hitting the submit button those 3 data entry are to be posted to my e-mail. (the variables get posted to text files and then the contact.php with the right code is supposed to mail them) the swishmax comes with some scripts, it has a mial to script, this script opens up outlokk express so the user can send you an email. Thats not wat i want though. Check this url it might give you some sorta understanding as to what i am on about. http://www.swishzone.com/index.php?area=resources&tab=tutorials&do=page&action=detailed&link_id=152 Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-177914 Share on other sites More sharing options...
fenway Posted February 6, 2007 Share Posted February 6, 2007 I do think it's very different... but that doesn't address you initial question. Sounds like you want a back-end script that sends and e-mail to you with POST data. If so, I'll move this to the PHP help thread. Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-178161 Share on other sites More sharing options...
jdn1 Posted February 6, 2007 Author Share Posted February 6, 2007 You know that sounds pretty spot on! If you could move it to the right location i would appreciate it. Also thanks for your time and effort so far.. Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-178365 Share on other sites More sharing options...
jdn1 Posted February 6, 2007 Author Share Posted February 6, 2007 Is any body able to help me out to tell me a brief description on how php works. outputting text to variables then posting with a .php script to an email address? cheers Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-178602 Share on other sites More sharing options...
The_Assistant Posted February 10, 2007 Share Posted February 10, 2007 Try this instead: contact.php <?php $q4_alias = $_POST['q4_alias']; $Xfire = $_POST['Xfire']; $email = $_POST['email']; $message = stripslashes($message); $sendTo = "[email protected]"; $subject = "Registration Form"; $msg_body = "q4_alias: $q4_alias\n"; $msg_body .= "Xfire: $Xfire\n"; $msg_body .= "email: $email\n"; $header_info = "From: ".$name." <".$email.">"; mail($sendTo, $subject, $msg_body, $header_info); ?> Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-181266 Share on other sites More sharing options...
jdn1 Posted February 10, 2007 Author Share Posted February 10, 2007 OK cool i will give that a go. Here another noob question for you when i upload the the html, the swishmax movie file and the contact.php file. Do they just sit on my we site in the same folder and when ppl fill out the form should that script automatically post thopse variables to my e-mail ? Or does the script have to be loaded or put some where special ? Cheers Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-181274 Share on other sites More sharing options...
The_Assistant Posted February 11, 2007 Share Posted February 11, 2007 it should be alright in the same directory. just make sure you keep existing directory structures when you upload the files. if you do decide you want to put the files in different directories then just change the locations in your scripts. Link to comment https://forums.phpfreaks.com/topic/37122-submit-button-posting-variables/#findComment-181701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.