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

Upload Code Help
Hi everyone I need some help with a bit of code ive been working with for a while. I am completely s

fwrite error
Hi All,
Does anyone know what is causing the error in this code?

Code: <?
$error

TCP Sending Unsigned Char...
Hi...

I want to send over tcp/ip some data, i have the data in hexadecimal, and when i tr

Sessions work for me and not others?
I'm having a bit of bad luck with sessions. In the past they have worked fine for me, but this time

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

Multiple arrays inside data
Hi,

Simple question. I have a column called "array" in my database, and inserted in

Facebook status update API
Hello,

So, I'm trying to create my first Facebook application with PHP.

Basic ideas fo

Encrypt php code?
Is it possible to encrypt php code in files,
so that it displays a load of unreadable characters

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

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