Jump to content

Help : Simple php template w/ variables


David Nelson

Recommended Posts

Hi guys! Great to be here.

 

For an upcoming project I need to setup a script where the user is given a search box, and whatever they type into the box will be called as a variable on the next page (using a single php template)

 

I am not very proficient in PHP, so I need a bit of help to complete this task.

 

The url format will need to be something like http://thesite.com/search.php?q=variable-phpfreaks

 

As I want to be able to send direct links to a page.

 

The visitor would be presented with a search box like this:

 

searchif7.jpg

 

Then, upon submitting, they'd get to a page like this where the content that they inputted is called in multiple areas as the variable:

 

templatehv4.jpg

 

If somebody could help me get the basic framework of this in PHP that would be awesome!

 

Thanks a ton guys!

Link to comment
https://forums.phpfreaks.com/topic/100729-help-simple-php-template-w-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.