Jump to content

a quick question about variables


Nothadoth

Recommended Posts

I have a variable this variable:

  $tarrif = $_POST['tarrif_name'];

That will hold for instance the word "Orange".

I need to now make another variable called $img which will be: tarrifs/".$tarrif."/".$tarrif.".jpg (tarrifs/Orange/Orange.jpg)

How can I do this?

I tried $img = "tarrifs/".$tarrif."/".$tarrif.".jpg"; and it didnt work.
Link to comment
https://forums.phpfreaks.com/topic/17731-a-quick-question-about-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.