Jump to content

Recommended Posts

I am new to web programming and I think I am missing a simple concept that is keeping me from going forward. I have a hosting account with Go Daddy and I want to send a bunch of data to my server or to an e-mail address. I have a bunch of buttons with values populated from an "onclick" command and I want all that button data to be sent somewhere. This is where I cannot figure out how to proceed. Please help.

  • Like 2

Share this post


Link to post
Share on other sites

you need to handlle the data using php or any server side language. check here http://w3schools.com/html/html_forms.asp in form's action attribute you will sepecify where the data will be sent and method will tell how via get or post. html or js cant send email you will need server side language for it.

Share this post


Link to post
Share on other sites

yes you can create it in notepad. but it needs a server installed in your compuer to run the file. did you check the w3schools.com/asp tutorials for start over?btw the examples in above link uses .asp that does not mean its obvious to use .asp. as w3schoos tutorial part is written in .asp so it is sending to a .asp file. it could be any other file which knows what to do with that data to process it. If you are not specialy leaned toward asp and just planing to learn any server side language. I will say to start with php.

Edited by birbal

Share this post


Link to post
Share on other sites

you can start over from hereat first form here http://w3schools.com/php (tutorial ,easy to catch up)in depth info and the manual is here http://php.net/language

Edited by birbal

Share this post


Link to post
Share on other sites

You only need to make one thread for your problems. I've merged the two threads here.

Share this post


Link to post
Share on other sites

This tutotial is going to be great! Thanks. I started going through it and I think there is one last bit of information I am missing. How do I test the code I am writing? I tried to load the .php file off my local drives to my server side and it will not load. It appears I can only load .html files on my server side. Am I missing something?

Share this post


Link to post
Share on other sites

It's possible that your server does not support PHP. What web host do you have?

Share this post


Link to post
Share on other sites

What happens when you try to load a PHP file?

Share this post


Link to post
Share on other sites

It worked now. I'm not sure why it did not load - maybe becauser I was working on the file and it was open at the time. I am going to mess around for a while now... thanks to all for responding and getting this baby rolling over. I hope to be crawling soon. Later!!!

Share this post


Link to post
Share on other sites

I'm pickin it up fairly easily - here is a new question. How do I get php to post process the value of a regular button. I would like to see all the information contained in all the buttons I have. I am using an onclick command to populate the value of the buttons.

Share this post


Link to post
Share on other sites

Information sent to PHP is available through $_GET and $_POST. You can use print_r to print out the entire array: print_r($_POST);

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...