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

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Multipe Dynamic Controls & AutoPostback Issue
I currently have a need to create many dynamic controls (Example Textboxes) that need to do a PostBa

Problem writing URL into database
How would I write this into the database?

<?php echo "http://".$_SERVER['SER

PL/SQL: ORA-00947: not enough values error message
Hi all i am getting Error(25,63): PL/SQL: ORA-00947: not enough values error message when executing

BIG file upload!
Hey guys!

I'm trying to upload a file, it works well with smaller files but with 60mb+, I get

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

add to sql result
ok see rite now my sites hit counter is counted from the mysql visitor log i need to clear it aft

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

Coding Critique
I was hoping someone could take a second and look down my code and see if they see any problems with

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