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

How to extract/download content from HTTPS page?
Hello to all the Members of this forum, Im Shoiab, A novice programmer in php.. for my first job I h

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

PHP Code To Change Font Color in Table Cell
I would appreciate help with the following snippet of my php code. I am just trying to change the f

Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently

Retrieving Data from Two Different Databases
Hello All,

Ran into another problem and would appreciate some help! I have two datab

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

disabling a button server-side then re-enabling client-side breaks button postback
I have a tabbed container and a button (not in the container) on a page. If the first tab is selecte

PHP Array quick help
I need

$_SESSION{'username'} to be like this:


if $_SESSION['username'] = "gay

Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code bel

Help with PHP Calendar code...
Hello, I'm new to this forum and I'm glad I found it.
I wrote this code for a PHP calendar as an

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