jrobles Posted October 23, 2009 Share Posted October 23, 2009 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: <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? Link to comment https://forums.phpfreaks.com/topic/178794-noob-curl-help/ Share on other sites More sharing options...
dreamwest Posted October 24, 2009 Share Posted October 24, 2009 Where is curl located? IN the include script?? You just need the url for curl to post to, then set the curl_setopt you want. In your form you only need what you are posting nothing more. Your form action should point to where curl is. curl is quite easy once you play with it a bit, then youll want to learn multi handle function curl_multi_add_handle, you can literally open 1000 pages within seconds and post to them all Link to comment https://forums.phpfreaks.com/topic/178794-noob-curl-help/#findComment-943331 Share on other sites More sharing options...
jrobles Posted October 24, 2009 Author Share Posted October 24, 2009 yeah my code doesn't have curl yet, I was looking for instructions on how to implement it, include or post to php file with curl code inside of it Link to comment https://forums.phpfreaks.com/topic/178794-noob-curl-help/#findComment-943334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.