Without using forms and hidden variables, how to send
variables from a PHP script to another URL using POST
Answer Posted / lakhan lal
you can do it using curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
|Is This Answer Correct ?||5 Yes||2 No|
How long should a session last?
Write a php function to convert all null values to blank?
What is difference between session and cookies in php?
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
What is substr() in php? And how it is used?
Why does sql injection happen?
Tell me when a conditional statement is ended with an endif?
What is isset in php?
What is a namespace in php?
Explain about PHP filter and why it should be used?
What are the array functions in php?
What are the Formatting and Printing Strings available in PHP?
Tell me how can we define a variable accessible in functions of a php script?
Is php class name case sensitive?
Is age interval or ordinal data?