Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,171,068 members, 7,880,324 topics. Date: Thursday, 04 July 2024 at 04:14 PM

Wordpress Website - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Wordpress Website (1178 Views)

My Wordpress Website Has Being Hacked / How To Add A Pop-up On Your Wordpress Website / Help!!!!! I Cant Login Into My Wordpress Website Admin Page (2) (3) (4)

(1) (Reply) (Go Down)

Wordpress Website by whyite(m): 10:13am On Jul 02, 2015
Please help, can someone there teach me how to customise wordpress for a website. Pls mail me tutorial ijewhyite@gmail.com thanks.
Re: Wordpress Website by Sanuzi(m): 7:58pm On Jul 02, 2015
Lets Talk:

Mobile/Whatsapp: 07038641600

BBM: 7B663F3A

www.africanwebservice.com

An expert in Blog Design,content management systems (CMS) such as
Webpagemaker,Frontpage, wordpress, joomla, drupal,
ecommerce platforms such as opencart, magento, Abante cart,WHMCS, prestashop.
Blogs:Ghost,serendipity,eggblog
Forums:SMF,Vanilla,phpBB,
Polls and Survey Sites:Limesurvey,littlepoll,piwik
Re: Wordpress Website by gozmos(m): 11:52pm On Jul 02, 2015
whyite:
Please help, can someone there teach me how to customise wordpress for a website. Pls mail me tutorial ijewhyite@gmail.com thanks.

let's talk whatsapp 07068058448
Re: Wordpress Website by mayor9498(m): 12:51am On Jul 03, 2015
Http://Elitenaija.Tk
Re: Wordpress Website by Emusan(m): 1:21pm On Jul 03, 2015
OP sorry for derailing your thread!

Sanuzi:
Lets Talk:

Mobile/Whatsapp: 07038641600

BBM: 7B663F3A

www.africanwebservice.com

An expert in Blog Design,content management systems (CMS) such as
Webpagemaker,Frontpage, wordpress, joomla, drupal,
ecommerce platforms such as opencart, magento, Abante cart,WHMCS, prestashop.
Blogs:Ghost,serendipity,eggblog
Forums:SMF,Vanilla,phpBB,
Polls and Survey Sites:Limesurvey,littlepoll,piwik

First Part

<?php
// An array of options for the first select box.
$makes = array('Acura', 'BMW', 'Lexus', 'Toyota', 'Honda');

// Displays the posted info
if(isset($_POST['submit']))
{ echo '<pre>'; print_r($_POST); echo '</pre>'; }
?>
<form action="" method="post">
<select id="makes" name="makes">
<?php
// Build the options for the first select box
foreach($makes as $m){ echo '<option value="'.$m.'">'.$m.'</option>'; }
?>
</select>
<select id="models" name="models">
</select>
<input type="submit" name="submit" value="Submit">
</form>

Second Part-JQuery

<script>
$('#makes').change(function(){ //Basically saying when the first select box changes values run the function below.
var make = $(this).val(); // Grab the value of the selection to send to the select-request.php via ajax
$.post('select-request.php', {make:make}, function(data){ // Run a ajax request and send the var make as a post variable named "make" and return the info in the "data" var.
$('#models').html(data); // Have jquery change the html within the second select box with the "data" we got back from the ajax request.
});
});
</script>

Third Part

<?php
error_reporting(E_ALL); //Remove this line for production, it simply will allow php to display any errors

// I built arrays based on the value names in the $makes array
$acura = array('Integra', 'TSX', 'MDX');
$bmw = array('1 Series', '3 Series', '5 Series', 'X5');
$lexus = array('ES300', 'GX470', 'GS350', 'LS400H');
$toyota = array('Venza', 'Camry', 'Corolla', 'Echo');
$honda = array('Pilot', 'Accord', 'Civic', 'Ridgeline');

//We check to see if the "make" post has come through before we do any processing.
if(isset($_POST['make']))
{
$model = strtolower($_POST['make']);

foreach($$model as $mo){ echo '<option value="'.$mo.'">'.$mo.'</option>'; }
}
?>

Can you help me on how to put all these in ONE PHP FILE?

I tried it but it always returns ERROR.

cc: gozmos

(1) (Reply)

20 Nigerian Adsense For Sale - Come And Pick Your / Anybody Doing Fivre I Need Help / How Many Fb Likes With 5k Ad Budget??

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 26
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.