brokenlink Posted February 9, 2007 Share Posted February 9, 2007 many people think that perhaps I am sick because I am so young and have a strange bald spot on my head. However, this is not the case. While doing a recent project regarding e-learning I attempted to create a website. Everything was going fine until I wanted to tell the little Submit button to do two simple tasks: 1) Send the data that learners have selected on my form to my email, and 2) to navigate to a pre-specified page. I can get the Submit button to email the data to me, although it is in a hard to read format or, not and sad.gif, navigate to the next page. While attempting to diagnose this conundrum I began to to lose hair. If anyone could bless me with their wisdom, this young padawan would be greatly appreciative. If not to impress all with your infinite wisdom, then to please save my hair! BTW: I am writing in php and html ??? Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/ Share on other sites More sharing options...
giba Posted February 9, 2007 Share Posted February 9, 2007 Hey, friend, if you show the code you are trying to write will make things clear and easy. Reply this, and someone will certainly help you! Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/#findComment-181056 Share on other sites More sharing options...
Caesar Posted February 9, 2007 Share Posted February 9, 2007 The simple tasks which you described my friend, can be done with minimal PHP knowledge. And though I am tempted to paste working code...I feel it is my responsibility not to, as that would only encourage you to further ask for code, rather than investing some time into picking up the basics. I wish you good luck in your quest, and hope you take the time to learn the wonders of PHP. http://www.php.net. Great resource. Also...look into conditional statements and the header() function. Peace out. Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/#findComment-181057 Share on other sites More sharing options...
brokenlink Posted February 9, 2007 Author Share Posted February 9, 2007 Thank you for your replies. I do understand the reasons behind the encouragement to continue down the path of php enlightenment with only words of wisdom, in regards to directional information only, to guide. But I would like to inform you that I have checked many places and have found nothing that I can interpret with my limited understanding. However, I will check php.net again to see if I can discover the truth for myself. I will post again to update you on my progress. Thanks again. Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/#findComment-181059 Share on other sites More sharing options...
Caesar Posted February 9, 2007 Share Posted February 9, 2007 Start with a single test. For example, using the header() function and creating a working example. That alone, will open a new world of possibilities to you! Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/#findComment-181063 Share on other sites More sharing options...
giba Posted February 9, 2007 Share Posted February 9, 2007 Hey, me again! I was reading your post again: if you are working with mail try reading this: http://www.php.net/manual/en/function.mail.php NOTE: YOU MUST REPLACE VARIABLES (from examples) by $_POST['yourvariables'], remember that, you must place then in the form into "name" atributes. E.g. <form etc...> Some text here: <input type="text" name="data"> <input type="submit" etc...> Then in your replacement to php this is no more "data" it's $_POST['data'], so the variable $data=$_POST['data']; I don't know if could help you! But try reading this link, patiently, you know! Link to comment https://forums.phpfreaks.com/topic/37828-submit-buttons-and-my-balding-head/#findComment-181073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.