Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:42:46+00:00 2026-06-03T15:42:46+00:00

My target site contains code like this <form> <input type=text name=suggest value=www.google.com> <input type=submit

  • 0

My target site contains code like this

<form>
<input type="text" name="suggest" value="www.google.com">
<input type="submit" value="submit">
</form>

I Get this page with Curl Php

<?php
$url="http://mysite.com"; 
$ch = curl_init(); 
curl_setopt ($ch, CURLOPT_URL, $url); 
$result = curl_exec ($ch); 
echo $result;  
curl_close($ch);
?>

How can I get an element value using id or name? For example “www.google.com” in input name=”suggest”. Thanks for helping me.

I cant use this code for remote like this :

<?php
require 'Path/QueryPath.php';
qp('http://hipfile.com/bbgfom5ej9tm/zakhme_shaneie_haava_dvdrip.wmv.html/')-

find(‘[password=”login”]’)->writeHTML();
?>

and return this error

Fatal error: Uncaught exception ‘QueryPathParseException’ with message ‘DOMDocument::load() [domdocument.load]: AttValue: " or ‘ expected in http://hipfile.com/bbgfom5ej9tm/zakhme_shaneie_haava_dvdrip.wmv.html/, line: 18 (C:\xampplite\htdocs\test1\Path\QueryPath.php: 2106)’ in C:\xampplite\htdocs\test1\Path\QueryPath.php:2346 Stack trace: #0 [internal function]: QueryPathParseException::initializeFromError(2, ‘DOMDocument::lo…’, ‘C:\xampplite\ht…’, 2106, Array) #1 C:\xampplite\htdocs\test1\Path\QueryPath.php(2106): DOMDocument->load(‘http://hipfile&#8230;.’, 0) #2 C:\xampplite\htdocs\test1\Path\QueryPath.php(179): QueryPath->parseXMLFile(‘http://hipfile&#8230;.’, NULL, NULL) #3 C:\xampplite\htdocs\test1\Path\QueryPath.php(23): QueryPath->__construct(‘http://hipfile&#8230;.’, NULL, Array) #4 C:\xampplite\htdocs\test1\index.php(3): qp(‘http://hipfile&#8230;.’) #5 {main} thrown in C:\xampplite\htdocs\test1\Path\QueryPath.php on line 2346

Can help me? I used two DOM And simplehtmldom but not working for me . it works for local page only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:42:48+00:00Added an answer on June 3, 2026 at 3:42 pm

    You’ll have to use a DOM parser. Lately I’ve been using Query Path: http://querypath.org/

    qp($result)->find('[name="name"]');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is for the usual PHP/SQL/html/CSS type of webdev. Site might be visited by
setTimeout(target.mousedown, 200) doesn't seem to work. I can do setTimeout(target.mousedown(), 200) , but this
(The target browser is IE8) I have a div that contains a list of
Ok so i've made this function which works fine for converting most urls like
We're using google translate to translate some shorter texts dynamically on our site. The
I'm creating a sort of a social networking site, like Facebook, as a university
The function: function post_with_curl($target,$ref, $name ,$viewStateValue ) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target)
Hi, I am using qTip on my site and this is how the document
I like to user custom errors in my site. The Idea is to trap
I need to develop a multi-tenant website like sample1.mysite.com sample2.mysite.com Hold on! No, this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.