noob cURL help


Posted on 16th Feb 2014 07:03 pm by admin

I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.inc.php). I have never used cURL and cant find any good tutorials online so you guys are my last resort here is the syntax for my very basic form:
Code: [Select]<form action='' method='post' enctype='multipart/form-datax'>
<input name='username' type='text' value='username' id='textinput_login' />
<input name='password' type='password' id='textinput_login' />
Did you know?Explore Trending and Topic pages for more stories like this.
<select name='program' id='ssl_login'>
<option value='type3'>Choose Plan</option>";
if (mysql_num_rows($result_ssl) > 0)
{while($row_ssl=mysql_fetch_object($result_ssl))
echo"<option value='$row_ssl->id'>$row_ssl->product</option>";}
echo"
</select>
<input name='login' class='btn' type='submit' value='LOGIN' />
</form>
Do I need to include the file that I am going to cURL post to? i.e. include_once ('login.inc.php'); , or do I need more php code to send the form values to my include?
No comments posted yet

Your Answer:

Login to answer
317 Like 46 Dislike
Previous forums Next forums
Other forums

Showing selected item at top of list
Hi,

I've got a list of names which i am fetching from database like this:
$qry = db_query

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

Help with echo()
I'm having some problems with this code:

Code: echo '
<A HREF="jav

listcube issue
Hi
I have a virtual cube ZREMOTE. I use Tcode "listcube" to retrieve contents. I use of the

Getting PHP to ammended the selected in option field
Hey Guys

thanks for everyones help so far. This site and its users are oozing awesomness.

connect() succeeds but accept() does not?
Please help me with this problem. I'm working on a time-sensitive project where I'm using TCP socket

Target costs on Process orders not calculating
Hi All,

We have released standard costs for all the materials. We have also done Goods r

Output Buffering question
Hi all,

I've been trying to wrap my head around output buffering. So far I've found tons of

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash