SRL Archive - General

action="www.site.com" method="post"


Jason2gs

2007-05-13 22:17:58

How do you method="post" to a site/server?

I'm trying to set up an emailing form type thing, but I'm having a bit of trouble finding out what the action of the form should be.

I'm really not sure what to ask, just try your best in answering, please :D

Thanks for reading,

Mike.

wired16

2007-05-14 00:07:01

method=post ..lala la… i know what it is but dont know how to explain it.. so here http://www.htmlcodetutorial.com/forms/_FORM_METHOD_POST.html

usually if you try and change somthing with post like i.e an email.. your hacking and shouldnt do that. :( im disapointed..jk not really

Jason2gs

2007-05-14 11:43:00

I'm afraid that doesn't help much.

I need to know what kind of address I'm supposed to put in action=""

I have no clue where to look, though :(

How would this be hacking?

omgh4x0rz

2007-05-17 17:42:21

He probably thinks you're trying to do javascript injection.

I don't understand what your problem is? You have the action direct to your other site, and you use the POST method to send the variable, which in your case I'm assuming will be the e-mail address. SO it sounds like you are doing it right.

On your page receiving the variable, you just include some code that does
something with $_POST

You can experiment and make sure your form is working right with this
echo ($_POST['variable name']);

It will echo whatever the variable it recieves under 'variable name' is.

Jason2gs

2007-05-17 19:50:49

PHP is so hot (h)

Thanks guys!

I'll work off that I 'spose.