PDA

View Full Version : action="www.site.com" method="post"



Jason2gs
05-14-2007, 02:17 AM
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
05-14-2007, 04:07 AM
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
05-14-2007, 03:43 PM
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
05-17-2007, 09:42 PM
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
05-17-2007, 11:50 PM
PHP is so hot (h)

Thanks guys!

I'll work off that I 'spose.