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' />
<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

Implementing Single Sign-On using SAML 1.1, x.509, LDAP in C#.net
Hi, I got a requirement from the client i.e implementing single sing on using SAML 1.1( LDAP &

Count
Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FR

CHECH A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

WELCOME SCREEN
first of all let me tell you what does my script do,

it´s a very simple query to show a e

Error in query: Resource id #4??
hey guys, having a minor (i think) problem here that i havent been able to figure out. long story sh

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do

asp authentication problem
Hello all, I want to use the asp authentication (from asp.net configuration) in my web site. there

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

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