How to move text from one page into the form of another page

I have a page with information on it, let’s say

i need to search through this page, find the value for username and the value for password, store them, probably in a variable. and carry them over onto a form on another page. like so:
Username: <input type=”text” name=”firstname”><br />
Password: <input type=”text” name=”lastname”>

This second page i [...]

The string inserted into the database is not complete

I have a very interesting issue. Only part of a value is being entered into my database.
I have a page that contains a form. The user will fill out the form and submit. All the POST values are correct and are submitting to the database. One paticular value ($criteria) is only [...]

Getting data from multidimensional arrays (render array) in twig

I have a render array for a form in my D7 module that looks like this:
‘form’ =>
‘#id’ => string ‘demo-form’ (length=9)
‘#action’ => string ‘/sprint07/’ (length=10)
‘name’ =>

RewriteRule no longer working after web host upgrade

My webhost recently upgraded their PHP to a new version, and now one of my redirects no longer works.
The redirect that doesn’t work now is:
RewriteRule toppers/i-(.*)/n-(.*).html$ toppers.php?i=$1&n=2

Which I find strange because all my other, similar rules still work.
Here is my full .htaccess file:
Options +FollowSymLinks
RewriteEngine on

RewriteRule toppers/i-(.*)/n-(.*).html$ toppers.php?i=$1&n=2
RewriteRule classes/i-(.*)/n-(.*).html$ classes.php?i=$1&n=2
RewriteRule news/i-(.*)/n-(.*)\.html$ news.php?i=$1&n=2

RedirectMatch 301 ^/cake-topper-pictures-pages/(.*)
RedirectMatch 301 [...]

Using javascript/jquery to submit a form upon the loading of a page

I wrote an array to pass variables in the GET to a search page. The search page only has 4 fields but I’m only passing the most important variables, first name and last. Here is the array:
<?php echo “<td><a href=’” . matry::base_to(‘test/trace’, array(‘first’=>$patient->first , ‘last’ =>$patient->last)) . “‘><ul class=’controls’>

speed up generate N unique random numbers code

I’ve been asked to generate all possible combinations in the range AA0000-ZZ9999(let’s call it folio), for each combination I also need a 8 digits unique ramdom number (let’s call it attcode), can’t be consecutive, I know that there are a lot of combinations and the process will be slow, but as I’m using the rand [...]

How to increase the loading speed of images on a web page which uses masonry js plugin

I am using Masonry plugin and am trying to display a gallery like web page.
Initially i am loading 10 images, when reached end of the page using ajax i am requesting next 10 images and then loading them .
The page seems to be aligned good irrespective of their image heights. But the thing is [...]

run php function/script after save in joomla

I’m trying to figure out how to run a function/script as soon as an item is saved in joomla 2.5. Joomla’s MVC structure is still rather complicated to me so I’m pulling my hair here trying to find out where this save event is triggered. Also I want to keep the code neat so I’m [...]

How to use oAuth for Google services from a web server

I want to create a server-side application (PHP) that would fetch data from my Google Analytics account once a week. I’ve been trying to follow the instructions on Analytics’ documentation, but with no success. Can this be done with oAuth? If not, what other choices (if any) there are?

Import an html file to a <textarea> formatted as HTML with indent and color?

My goal is to import / open anything from an HTML file to a <textarea> that is visible to the user on the web page and formated as HTML.
I have the following code
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “”>
<html xmlns=”” xml:lang=”en” lang=”en”>
<title><!– Insert your title here –></title>

<!– start import –>

Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.