Jump to content

$filename=$variable


Webnerdz

Recommended Posts

I know the answer is probably right in front of me, but I just cannot figure it out. Can anyone please help me with the syntax here:

if ($i==1){$filename='$crpage';}

$crpage is the variable called from the previous page. When it creates the file it creates a file called $crpage.html in the directory. I just need to figure out why it doesn't create the name that is entered in the form for the $crpage variable.

Thank you all in advance for any assistance you can provide!

Link to comment
Share on other sites

[!--quoteo(post=369348:date=Apr 27 2006, 03:32 PM:name=Webnerdz)--][div class=\'quotetop\']QUOTE(Webnerdz @ Apr 27 2006, 03:32 PM) [snapback]369348[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I know the answer is probably right in front of me, but I just cannot figure it out. Can anyone please help me with the syntax here:

if ($i==1){$filename='$crpage';}

$crpage is the variable called from the previous page. When it creates the file it creates a file called $crpage.html in the directory. I just need to figure out why it doesn't create the name that is entered in the form for the $crpage variable.

Thank you all in advance for any assistance you can provide!
[/quote]

Umm, I'm not sure if I understand what you mean but here

[code]if ($i==1){$filename="'$crpage'.html" }[/code]

Try that
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.