I’ve searched but can’t find an answer.
There is a website with a contact form, the address end’s like this: /?page_id=42, what I want is to send an email from this contact form through the iPhone, without entering the site, through PHP.
From the iPhone textfields.
so I did like this:
/?page_id=42contactname=hello&contactsubject=hey&contactemail=yositsa@gmail.com&contactmessage=this is just checking message
but I dont know why, it isn’t sending me the message, what have I done wrong from the PHP and Objective-C side..
I dont have much knowledge in PHP and I’m new to Objective-C.
Thanks! 🙂
Like some other people have mentioned – does your PHP contact page use GET request variables? If unsure, check your contact page and look for $_POST. If you see this, just as a quick fix change all of your $_POST references to $_REQUESTS (which allow both POST and GET variables).
If this works, and you’d still like to use POST – then use something like ASIHTTPRequest in your iOS app to post the variables over.