₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,475 members, 8,431,212 topics. Date: Sunday, 21 June 2026 at 11:17 PM

Toggle theme

Hollyfat's Posts

Nairaland ForumHollyfat's ProfileHollyfat's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 16 pages)

ProgrammingRe: See The Javascript Code That Is Turning My Brain by hollyfat(m): 9:33pm On Jun 26, 2016
hollyfat:
Try this


<?php
$id = rand(1,9); //Generate a random number between 1 and 9
?>
<a onclick="check_id(this)" href="#" id="<?php echo $id; ?>">Click Me</a><!--pass the php id to the "a" tag-->
<script type="text/javascript">
function check_id(i){
var ID = i.getAttribute( "id" ); //Get the attribute of the id
console.log(ID);
}
</script>
A better option


<!DOCTYPE html>
<html>
<head>
<title>Js</title>
</head>
<body>
<?php
$id = rand(1,9); //Generate a random number between 1 and 9
?>
<a onclick="check_id(this)" href="#" id="<?php echo $id; ?>">Click Me</a><!--pass the php id to the "a" tag-->
<script type="text/javascript">
function check_id(i){
var ID = i.getAttribute("id"wink; //Get the attribute of the id
console.log(ID);

send_form(ID);
}

function send_form(id){
//this will send the form dynamically

//create a form
var form = document.createElement("form"wink;
form.setAttribute('method',"post"wink; //set form method to post
form.setAttribute('action',"submit.php"wink; //set form action to where you want "submit.php"

//create input element
var input = document.createElement("input"wink;
input.type = "text";
input.name = "id";
input.value = id;

//create a submit button
var btn = document.createElement("input"wink;
btn.type = "submit";
btn.value = "Submit";

// add all elements to the form
form.appendChild(input);
form.appendChild(btn);

//add the form to the body
document.getElementsByTagName('body')[0].appendChild(form);

//submit the form
form.submit();
}
</script>
</body>
</html>
ProgrammingRe: See The Javascript Code That Is Turning My Brain by hollyfat(m): 9:22pm On Jun 26, 2016
lillylove2:
Please guys help me o. I've searched all over the internet and still can't find solution to this.

I have a link (html element), whose ID is automatically generated with PHP. Whenever the link is clicked, i want to insert the ID of the link into my database. The only problem now is how to get the ID.

This is my mock code:

///// The PHP that generates the id:
<?php
$id=(an array of numbers returned from a while loop);
?>


////the html link
<a href='#' onClick='MyId()' id='<?php echo $id ;?>'>Click Me</a>

/// the javascript function
function MyId() {
var ID=document.getElementById( the id of the element generated by php ).id;
}

My question now is how do i get and put the id of the clicked link into variable var ID
Try this


<?php
$id = rand(1,9); //Generate a random number between 1 and 9
?>
<a onclick="check_id(this)" href="#" id="<?php echo $id; ?>">Click Me</a><!--pass the php id to the "a" tag-->
<script type="text/javascript">
function check_id(i){
var ID = i.getAttribute( "id" ); //Get the attribute of the id
console.log(ID);
}
</script>
CelebritiesRe: Drake Breaks UK Singles Chart Record With One Dance Ft Wizkid & Kyla by hollyfat(m): 11:02pm On Jun 25, 2016
Postboiswag:
Wizkid must win ooo

BET 2016 Best international Act Africa
Unfortunately, he didn't win the award.










Maybe he is not interested because he never clamor for votes from his fans
ProgrammingRe: Has Anyone Seen This Type Of URL Before by hollyfat(m): 5:34pm On Jun 25, 2016
CareerRe: How To Look Busy At Work Without Really Working by hollyfat(m): 8:49am On Jun 24, 2016
All the aforementioned tips can even be stressful more than the original job
WebmastersRe: I Need A Service Of A Good Web Designer by hollyfat(m): 12:11am On Jun 22, 2016
adekennis:
I need service of a web designer for my newly registered company..Its actually a General Trading company and i want to set up a website..Anyone with a fair charge should contact me or drop your contact.. 08052260204
Location : Lagos...


Thanks.
Call or whatsapp 08130327697
ProgrammingRe: How To Unenctype A Password In A Database by hollyfat(m): 4:58pm On Jun 20, 2016
ProGSM:
Also, the script is on php and the code has:

enctype="application/x-www-form-urlencoded

Thank you for your help.
Can you show some part of the login code to know the type of encryption used.

If it is md5, you might have to encrypt another password of your own to replace the one there
CelebritiesRe: Photo: Pasuma's Daughter Aaliyah Graduates From College by hollyfat(m): 9:18am On Jun 18, 2016
scholes0:
LOL.... This girl's actual name is probably Shakiratu Alabi
Come dey tell everyone say her name na Aaliyah in her US school.

looool
That is because you never heard any of his song. He always claim to be Popsy Aaliyah
WebmastersRe: I Need A Web Designer ( I Have 3 Projects I Need Executed ) by hollyfat(m): 6:15pm On Jun 16, 2016
Puresolutions:
@Donald3d you've been served check n revert !
Call or whatsapp 08130327697. Sirhollyfat@gmail.com
ComputersRe: Help. I Know Our Office Wi-fi Password, But I Can't Use It by hollyfat(m): 3:47pm On Jun 15, 2016
Serenity008:
Seems this IT guy in my office has started using charm. grin

Dude has changed all the passwords of the WiFi in our office.
The thing is now something else. One can see the password, but one can't use it on another device unless he put it for you.

Please anyone with info on how to go about this?
You might not be able use the network even if it doesn't use password(Open network). The router might be configured to use Media Access Control (MAC) authentication
SportsRe: Musa Muhammed Signs Amodu And Keshi's Condolence Registers by hollyfat(m): 10:13am On Jun 15, 2016
Rip Great men
EducationRe: Osun Students Appear In Church Garments by hollyfat(m): 12:45pm On Jun 14, 2016
grin This is a welcome development as this will create job for people sewing Masquerades, Osun and Ifa Cloth
PoliticsRe: We Have Kept Our Promise Of Creating Jobs For Nigerians – Lai Mohammed by hollyfat(m): 10:29am On Jun 14, 2016
Egbon Lai never lie.














Hope his son is now dressing masquerades, because that is the only job he promise
CelebritiesRe: D'banj's "Super Star" Music Video Shoot by hollyfat(m): 2:37pm On Jun 09, 2016
Tech JobsRe: Need A PHP Programmer To Help Me Add A Comment Session On My Website by hollyfat(m): 10:25am On Jun 09, 2016
pythonkid:
Hey guys , please i need a PHP programmer to help me add a comment session on my website , contact me if you can do this job ..
Call or whatsapp 08130327697
ProgrammingRe: Php by hollyfat(m): 10:40am On Jun 05, 2016
Screenshot or post the error code
PoliticsRe: Photos From Today's Senate Plenary Session by hollyfat(m): 3:24pm On Jun 02, 2016
omusiliyu:
Is Bukky dating Remi?
Let me ask Tinubu
PoliticsRe: Boko Haram Responsible For Scarcity Of Tomato In Nigeria- Lai Mohammed by hollyfat(m): 7:49pm On Jun 01, 2016
Thank God, it's not GEJ this time
PoliticsRe: Aregbeshola: Projects And Project Inspections..pictures by hollyfat(m): 12:31am On Jun 01, 2016
Those school pictures are the same(Osogbo High Scholl) except for Salvation Army in Oke-Fia, Ataoja High Schools.
The other pictures are old pictures
ProgrammingRe: Please Help A Script Kiddie Out With Javascript by hollyfat(m): 5:35pm On May 31, 2016
donlyone:
After applying all the tips I got online, I still keep getting this error on browser console :

Uncaught TypeError: cannot set property 'innerHTML' of null
This might be due to the fact that you are trying to change the content of an element that does not exist
ProgrammingRe: Please Help A Script Kiddie Out With Javascript by hollyfat(m): 1:37pm On May 31, 2016
donlyone:
Thanks for the reply.

Note that I have two functions I'm trying to use,
salut() and mo().

If I call the functions in this order:
salut()
mo()

salut() will work while mo() will not work.

If change the order like this:
mo()
salut()

Then mo() will work while salut() will not work.
All other code I add to the JavaScript does not work except the first one.

that's my problem.
Trying using your browser console to track the error.
PoliticsRe: See What Ugandans Think About Buhari On Facebook by hollyfat(m): 6:14am On May 26, 2016
AntidaftMOD:
Even the ones who cannot construct a simple sentence without making mistakes are also calling Buhari an illiterate. Most of those people who commented there are some disgruntled elements from a particular section of the country. All I see them doing is blabbing, blabbing and continuous blabbing.

This hardship we are facing today is as a result of PDP's 16yrs of failure and massive looting (particularly from 2011 - 2015). They couldn't save for latter days even when it was visible to the blind, audible to the deaf, perceivable to the anosmia and vocal to the dumb that economic woe was sacrosanct for this country.

Lemme just rest my case for now.
Is it not those looters in PDP for 16yrs (particularly from 2011 - 2015) that form the "Changed" government?
PoliticsRe: 14 Things President Buhari Has Changed Since Assuming Power by hollyfat(m): 11:33pm On May 24, 2016
olokfor:
The presidency over the months have been jibbed by many. While some see President Muhammadu Buhari’s government as slow and inactive, others see it as in capable of bringing the promised change.


However, one need to ask; have things remained how they were when President Muhammadu Buhari took over about a year ago? Certainly not! Here are 14 things that have changed:


1. The government closed 40 accounts in NNPC to give room for accountability.

2. The Port Harcourt and Warri refineries are back in operation with 60 per cent capacity and producing 7 million litres of PMS daily. The Kaduna refinery also resumed production at the end of the April, 2016.

3. President Buhari directed the CBN to disburse N689.5b as bailout to 27 states to pay salaries.

4. 34,000 The number of ghost workers draining the nation’s resources now expunged from the Federal Civil Service, saving N2.29b in the process.

5. President Buhari saved $1m by his directive stopping the appointment of a government delegation for pilgrimage to Saudi Arabia.

6. On assumption of office, the President cut down the number of ministries from 42 to 25 to reduce the cost of governance.

7. $321m The amount Switzerland will repatriate to Nigeria from the illicitly acquired wealth of the Gen. Sani Abacha family.

8. The Nigerian troops has rescued a total of 11,595 in the ongoing operations in the Northeast as at February 2016.

9. The Presidential Committee set up to probe contracts awarded by the Office of the National Security Adviser (ONSA) from 2011 to 2015 has recovered N7b.

10. The President secured a $5m support from U.S. government June last year and another $40m in April 2016 for the fight against the terrorists in the sub-region.

11. The government saves $1b annually by the elimination of the Offshore Processing Agreement (OPA) through the introduction of the Direct Sales and Direct Purchase (DSDP) scheme with reputable off-shore refineries

12. The Port Harcourt, Warri and Kaduna Refineries now produce 7m litres of PMS per day.

13. The implementation of the Treasury Single Account (TSA) which stands at N3trillion has provided greater visibility of government revenues and cash flows. A war on high pedestal.

14. Buhari intensified the anti-corruption war which has led to the arrest of high profile public officers. Such cases include the ones against former Peoples Democratic Party (PDP) spokesman Olisa Metuh, Daar Communications Chairman Dr Raymond Dokpesi and former Chief of Defence Staff Alex Badeh.

http://www.metronaija.com/2016/05/14-things-president-buhari-has-changed.html
2- Are you sure the refinery are working?
6- Ministries are not 42, It is ministers that are 42
RomanceRe: 7 Reasons Why Shy Guys Find It Difficult To Approach A Lady by hollyfat(m): 4:14pm On May 24, 2016
I agree with (2) and (5)
EducationRe: University Of Ibadan 2016/2017 Direct Entry Thread by hollyfat(m): 12:17pm On May 24, 2016
nofisahdolapo:
gud day nairalanders wanna knw d subject combinatin fr computer science in my o'levels quick response is highly appreciated
5 ‘O’ level subjects at one sitting or 6 ‘O’ level subjects at 2 sittings to include English Language, Mathematics, Chemistry, Physics and any other Science subjects.
ComputersRe: HP250 Core I3 by hollyfat(m): 10:18am On May 21, 2016
40k?
ProgrammingRe: PHP Code To Insert And Retrieve Images From Mysql Server by hollyfat(m): 4:44pm On May 18, 2016
adexsimply:
shocked You want to build an ecommerce website from scratch?
Is it impossible?
Tech JobsRe: Urgent Vacancy For PHP Programmer by hollyfat(m): 8:43pm On May 16, 2016
dhtml18:
Are you sure you can actually read?
Maybe because I couldn't locate my E-Glass
Tech JobsRe: Urgent Vacancy For PHP Programmer by hollyfat(m): 8:27pm On May 16, 2016
gbengalaw:
We urgently need a good php programmer with good knowledge in php frameworks like laravel,syphony to collaborate on a php project.
Call 08035585046/08023307682 or send cv to olabola2001@yahoo.com
what about CodeIgniter?
BusinessRe: Naira Finally Devalued To N290/$ By Buhari by hollyfat(m): 9:03am On May 14, 2016
In Lie Muhammed voice "The devaluation of Naira will create 500,000 jobs"
Tech JobsRe: Affordable PHP Programmer Needed by hollyfat(m): 8:49am On May 14, 2016
Call or whatsapp 08130327697

1 2 3 4 5 6 7 8 9 10 11 12 (of 16 pages)