₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,638 members, 8,422,962 topics. Date: Tuesday, 09 June 2026 at 07:13 AM

Toggle theme

Wordpress Website - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersWordpress Website (1277 Views)

1 Reply (Go Down)

Wordpress Website by whyite(op): 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

My Wordpress Website Has Being HackedHow To Add A Pop-up On Your Wordpress WebsiteHelp!!!!! I Cant Login Into My Wordpress Website Admin Page234

Design A Forum Like Nairaland!!!Check Out This Brand New Forum!