Jump to content

radio86

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

radio86's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi thanks for your reply, i am unable to give you the code at this is moment of time because im at my parents house for the weekend. yes i am using UI tabs. i'll try my best to get the code. please not all .js files are loaded in the header of the page, using php i include main_form.php as normal if querystring matches, now i dont want to use php include function to display the form therefore i want to display using ajax
  2. Hi guys, I have a form that is designed in tabs using jquery each tab has its section of the form and each tab calls the function preview which is updates preview of filled form, this form is in external file form_main.php. at this moment of time, i use it this way but now i want to add another but simple form no jquery attached to it and it is called new_form.php. when i use jquery function ajax.load to get the form but it does not display in tabs therefore displays in bullet points. how do i get that form_main.php to the page so it renders it properly as it was before. thanks in advance
  3. Hi Guys I can login into the site, a session is created and stored in cookies.txt but i dont know how to begin the next step where the script needs to submit another form in the members area on the same website. basically the plan is, i create my own form and send data to curl script which will login into external website form, create session, then send data created from my own form to to external website members form page. This way i will be able to store the data on my database and sent to them. But now i am lost. Please help me, thanks in advance function getData($data) { $query = ""; foreach ($data as $value => $name) { $query.=$value."=".$name."&"; } return $query; } $var = substr(getData($_POST),0,-1); $headers = array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0. Gecko/20061025 Firefox/1.5.0.8"); // INIT CURL $ch = curl_init(); // SET URL FOR THE POST FORM LOGIN curl_setopt($ch, CURLOPT_URL, 'http://site.com/page.php'); // ENABLE HTTP POST curl_setopt ($ch, CURLOPT_POST, 1); // SET POST PARAMETERS : FORM VALUES FOR EACH FIELD curl_setopt ($ch, CURLOPT_POSTFIELDS, 'user=radio86&pass=phpfreaks'); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_MAXREDIRS, 4); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . "/cookies.txt"); curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/cookies.txt"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec ($ch);
  4. hi everyone, i just signed up on this forum. I have issue, my clients wants to save time by copying data into a textarea and then letting the script process it and store it in database. the problem is never done that. the data is made up for eg. Title Mr Name Radio86 Address Chiltren House etc.... how do i split this data up and store it in database, btw ive just started programming in php in other words newbie Please help me, thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.