Jump to content

Submit buttons and my balding head


brokenlink

Recommended Posts

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

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.

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.

 

;)

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!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.